Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
qianlong66
uni-app
提交
22bde64a
U
uni-app
项目概览
qianlong66
/
uni-app
与 Fork 源项目一致
Fork自
DCloud / uni-app
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
22bde64a
编写于
11月 03, 2021
作者:
fxy060608
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
build(deps): bump vue from 3.2.20 to 3.2.21
上级
348ae915
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
90 addition
and
50 deletion
+90
-50
packages/uni-app-plus/dist/uni-app-view.umd.js
packages/uni-app-plus/dist/uni-app-view.umd.js
+1
-1
packages/uni-app-vue/dist/service.runtime.esm.dev.js
packages/uni-app-vue/dist/service.runtime.esm.dev.js
+18
-5
packages/uni-app-vue/dist/service.runtime.esm.prod.js
packages/uni-app-vue/dist/service.runtime.esm.prod.js
+12
-3
packages/uni-app-vue/dist/view.runtime.esm.js
packages/uni-app-vue/dist/view.runtime.esm.js
+57
-39
packages/uni-mp-vue/dist/vue.runtime.esm.js
packages/uni-mp-vue/dist/vue.runtime.esm.js
+2
-2
未找到文件。
packages/uni-app-plus/dist/uni-app-view.umd.js
浏览文件 @
22bde64a
因为 它太大了无法显示 source diff 。你可以改为
查看blob
。
packages/uni-app-vue/dist/service.runtime.esm.dev.js
浏览文件 @
22bde64a
...
...
@@ -2501,6 +2501,7 @@ export default function vueFactory(exports) {
var
devtools
;
var
buffer
=
[];
var
devtoolsNotInstalled
=
false
;
function
emit
(
event
)
{
for
(
var
_len5
=
arguments
.
length
,
args
=
new
Array
(
_len5
>
1
?
_len5
-
1
:
0
),
_key6
=
1
;
_key6
<
_len5
;
_key6
++
)
{
...
...
@@ -2509,7 +2510,7 @@ export default function vueFactory(exports) {
if
(
devtools
)
{
devtools
.
emit
(
event
,
...
args
);
}
else
{
}
else
if
(
!
devtoolsNotInstalled
)
{
buffer
.
push
({
event
,
args
...
...
@@ -2530,7 +2531,11 @@ export default function vueFactory(exports) {
return
devtools
.
emit
(
event
,
...
args
);
});
buffer
=
[];
}
else
{
}
else
if
(
// handle late devtools injection - only do this if we are in an actual
// browser environment to avoid the timer handle stalling test runner exit
// (#4815)
// eslint-disable-next-line no-restricted-globals
typeof
window
!==
'
undefined
'
&&
!
navigator
.
userAgent
.
includes
(
'
jsdom
'
))
{
var
replay
=
target
.
__VUE_DEVTOOLS_HOOK_REPLAY__
=
target
.
__VUE_DEVTOOLS_HOOK_REPLAY__
||
[];
replay
.
push
(
newHook
=>
{
setDevtoolsHook
(
newHook
,
target
);
...
...
@@ -2538,8 +2543,16 @@ export default function vueFactory(exports) {
// at all, and keeping the buffer will cause memory leaks (#4738)
setTimeout
(()
=>
{
buffer
=
[];
if
(
!
devtools
)
{
target
.
__VUE_DEVTOOLS_HOOK_REPLAY__
=
null
;
devtoolsNotInstalled
=
true
;
buffer
=
[];
}
},
3000
);
}
else
{
// non-browser env, assume not installed
devtoolsNotInstalled
=
true
;
buffer
=
[];
}
}
...
...
@@ -6012,7 +6025,7 @@ export default function vueFactory(exports) {
*/
var
isBuiltInDirective
=
/*#__PURE__*/
makeMap
(
'
bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text
'
);
var
isBuiltInDirective
=
/*#__PURE__*/
makeMap
(
'
bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text
,memo
'
);
function
validateDirectiveName
(
name
)
{
if
(
isBuiltInDirective
(
name
))
{
...
...
@@ -11554,7 +11567,7 @@ export default function vueFactory(exports) {
}
// Core API ------------------------------------------------------------------
var
version
=
"
3.2.2
0
"
;
var
version
=
"
3.2.2
1
"
;
var
_ssrUtils
=
{
createComponentInstance
,
setupComponent
,
...
...
packages/uni-app-vue/dist/service.runtime.esm.prod.js
浏览文件 @
22bde64a
...
...
@@ -2242,7 +2242,11 @@ export default function vueFactory(exports) {
return
devtools
.
emit
(
event
,
...
args
);
});
buffer
=
[];
}
else
{
}
else
if
(
// handle late devtools injection - only do this if we are in an actual
// browser environment to avoid the timer handle stalling test runner exit
// (#4815)
// eslint-disable-next-line no-restricted-globals
typeof
window
!==
'
undefined
'
&&
!
navigator
.
userAgent
.
includes
(
'
jsdom
'
))
{
var
replay
=
target
.
__VUE_DEVTOOLS_HOOK_REPLAY__
=
target
.
__VUE_DEVTOOLS_HOOK_REPLAY__
||
[];
replay
.
push
(
newHook
=>
{
setDevtoolsHook
(
newHook
,
target
);
...
...
@@ -2250,8 +2254,13 @@ export default function vueFactory(exports) {
// at all, and keeping the buffer will cause memory leaks (#4738)
setTimeout
(()
=>
{
buffer
=
[];
if
(
!
devtools
)
{
target
.
__VUE_DEVTOOLS_HOOK_REPLAY__
=
null
;
buffer
=
[];
}
},
3000
);
}
else
{
buffer
=
[];
}
}
...
...
@@ -9704,7 +9713,7 @@ export default function vueFactory(exports) {
}
// Core API ------------------------------------------------------------------
var
version
=
"
3.2.2
0
"
;
var
version
=
"
3.2.2
1
"
;
var
_ssrUtils
=
{
createComponentInstance
,
setupComponent
,
...
...
packages/uni-app-vue/dist/view.runtime.esm.js
浏览文件 @
22bde64a
...
...
@@ -1589,11 +1589,12 @@ function tryWrap(fn) {
let
devtools
;
let
buffer
=
[];
let
devtoolsNotInstalled
=
false
;
function
emit
(
event
,
...
args
)
{
if
(
devtools
)
{
devtools
.
emit
(
event
,
...
args
);
}
else
{
else
if
(
!
devtoolsNotInstalled
)
{
buffer
.
push
({
event
,
args
});
}
}
...
...
@@ -1604,7 +1605,13 @@ function setDevtoolsHook(hook, target) {
buffer
.
forEach
(({
event
,
args
})
=>
devtools
.
emit
(
event
,
...
args
));
buffer
=
[];
}
else
{
else
if
(
// handle late devtools injection - only do this if we are in an actual
// browser environment to avoid the timer handle stalling test runner exit
// (#4815)
// eslint-disable-next-line no-restricted-globals
typeof
window
!==
'
undefined
'
&&
!
navigator
.
userAgent
.
includes
(
'
jsdom
'
))
{
const
replay
=
(
target
.
__VUE_DEVTOOLS_HOOK_REPLAY__
=
target
.
__VUE_DEVTOOLS_HOOK_REPLAY__
||
[]);
replay
.
push
((
newHook
)
=>
{
...
...
@@ -1613,9 +1620,18 @@ function setDevtoolsHook(hook, target) {
// clear buffer after 3s - the user probably doesn't have devtools installed
// at all, and keeping the buffer will cause memory leaks (#4738)
setTimeout
(()
=>
{
buffer
=
[];
if
(
!
devtools
)
{
target
.
__VUE_DEVTOOLS_HOOK_REPLAY__
=
null
;
devtoolsNotInstalled
=
true
;
buffer
=
[];
}
},
3000
);
}
else
{
// non-browser env, assume not installed
devtoolsNotInstalled
=
true
;
buffer
=
[];
}
}
function
devtoolsInitApp
(
app
,
version
)
{
emit
(
"
app:init
"
/* APP_INIT */
,
app
,
version
,
{
...
...
@@ -4412,7 +4428,7 @@ return withDirectives(h(comp), [
[bar, this.y]
])
*/
const
isBuiltInDirective
=
/*#__PURE__*/
makeMap
(
'
bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text
'
);
const
isBuiltInDirective
=
/*#__PURE__*/
makeMap
(
'
bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text
,memo
'
);
function
validateDirectiveName
(
name
)
{
if
(
isBuiltInDirective
(
name
))
{
warn$1
(
'
Do not use built-in directive ids as custom directive id:
'
+
name
);
...
...
@@ -9085,7 +9101,7 @@ function isMemoSame(cached, memo) {
}
// Core API ------------------------------------------------------------------
const
version
=
"
3.2.2
0
"
;
const
version
=
"
3.2.2
1
"
;
const
_ssrUtils
=
{
createComponentInstance
,
setupComponent
,
...
...
@@ -9215,16 +9231,8 @@ function patchClass(el, value, isSVG) {
function
patchStyle
(
el
,
prev
,
next
)
{
const
style
=
el
.
style
;
const
currentDisplay
=
style
.
display
;
if
(
!
next
)
{
el
.
removeAttribute
(
'
style
'
);
}
else
if
(
isString
(
next
))
{
if
(
prev
!==
next
)
{
style
.
cssText
=
next
;
}
}
else
{
const
isCssString
=
isString
(
next
);
if
(
next
&&
!
isCssString
)
{
for
(
const
key
in
next
)
{
setStyle
(
style
,
key
,
next
[
key
]);
}
...
...
@@ -9236,11 +9244,22 @@ function patchStyle(el, prev, next) {
}
}
}
// indicates that the `display` of the element is controlled by `v-show`,
// so we always keep the current `display` value regardless of the `style` value,
// thus handing over control to `v-show`.
if
(
'
_vod
'
in
el
)
{
style
.
display
=
currentDisplay
;
else
{
const
currentDisplay
=
style
.
display
;
if
(
isCssString
)
{
if
(
prev
!==
next
)
{
style
.
cssText
=
next
;
}
}
else
if
(
prev
)
{
el
.
removeAttribute
(
'
style
'
);
}
// indicates that the `display` of the element is controlled by `v-show`,
// so we always keep the current `display` value regardless of the `style`
// value, thus handing over control to `v-show`.
if
(
'
_vod
'
in
el
)
{
style
.
display
=
currentDisplay
;
}
}
}
const
importantRE
=
/
\s
*!important$/
;
...
...
@@ -9603,22 +9622,11 @@ class VueElement extends BaseClass {
}
this
.
attachShadow
({
mode
:
'
open
'
});
}
// set initial attrs
for
(
let
i
=
0
;
i
<
this
.
attributes
.
length
;
i
++
)
{
this
.
_setAttr
(
this
.
attributes
[
i
].
name
);
}
// watch future attr changes
new
MutationObserver
(
mutations
=>
{
for
(
const
m
of
mutations
)
{
this
.
_setAttr
(
m
.
attributeName
);
}
}).
observe
(
this
,
{
attributes
:
true
});
}
connectedCallback
()
{
this
.
_connected
=
true
;
if
(
!
this
.
_instance
)
{
this
.
_resolveDef
();
this
.
_update
();
}
}
disconnectedCallback
()
{
...
...
@@ -9637,8 +9645,18 @@ class VueElement extends BaseClass {
if
(
this
.
_resolved
)
{
return
;
}
this
.
_resolved
=
true
;
// set initial attrs
for
(
let
i
=
0
;
i
<
this
.
attributes
.
length
;
i
++
)
{
this
.
_setAttr
(
this
.
attributes
[
i
].
name
);
}
// watch future attr changes
new
MutationObserver
(
mutations
=>
{
for
(
const
m
of
mutations
)
{
this
.
_setAttr
(
m
.
attributeName
);
}
}).
observe
(
this
,
{
attributes
:
true
});
const
resolve
=
(
def
)
=>
{
this
.
_resolved
=
true
;
const
{
props
,
styles
}
=
def
;
const
hasOptions
=
!
isArray
(
props
);
const
rawKeys
=
props
?
(
hasOptions
?
Object
.
keys
(
props
)
:
props
)
:
[];
...
...
@@ -9653,14 +9671,11 @@ class VueElement extends BaseClass {
}
}
}
if
(
numberProps
)
{
this
.
_numberProps
=
numberProps
;
this
.
_update
();
}
this
.
_numberProps
=
numberProps
;
// check if there are props set pre-upgrade or connect
for
(
const
key
of
Object
.
keys
(
this
))
{
if
(
key
[
0
]
!==
'
_
'
)
{
this
.
_setProp
(
key
,
this
[
key
]);
this
.
_setProp
(
key
,
this
[
key
]
,
true
,
false
);
}
}
// defining getter/setters on prototype
...
...
@@ -9674,7 +9689,10 @@ class VueElement extends BaseClass {
}
});
}
// apply CSS
this
.
_applyStyles
(
styles
);
// initial render
this
.
_update
();
};
const
asyncDef
=
this
.
_def
.
__asyncLoader
;
if
(
asyncDef
)
{
...
...
@@ -9700,10 +9718,10 @@ class VueElement extends BaseClass {
/**
* @internal
*/
_setProp
(
key
,
val
,
shouldReflect
=
true
)
{
_setProp
(
key
,
val
,
shouldReflect
=
true
,
shouldUpdate
=
true
)
{
if
(
val
!==
this
.
_props
[
key
])
{
this
.
_props
[
key
]
=
val
;
if
(
this
.
_instance
)
{
if
(
shouldUpdate
&&
this
.
_instance
)
{
this
.
_update
();
}
// reflect
...
...
packages/uni-mp-vue/dist/vue.runtime.esm.js
浏览文件 @
22bde64a
...
...
@@ -2284,7 +2284,7 @@ return withDirectives(h(comp), [
[bar, this.y]
])
*/
const
isBuiltInDirective
=
/*#__PURE__*/
makeMap
(
'
bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text
'
);
const
isBuiltInDirective
=
/*#__PURE__*/
makeMap
(
'
bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text
,memo
'
);
function
validateDirectiveName
(
name
)
{
if
(
isBuiltInDirective
(
name
))
{
warn$1
(
'
Do not use built-in directive ids as custom directive id:
'
+
name
);
...
...
@@ -4284,7 +4284,7 @@ const useSSRContext = () => {
};
// Core API ------------------------------------------------------------------
const
version
=
"
3.2.2
0
"
;
const
version
=
"
3.2.2
1
"
;
/**
* @internal only exposed in compat builds
*/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录