Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
陈庄旺
uni-app
提交
f0414881
U
uni-app
项目概览
陈庄旺
/
uni-app
与 Fork 源项目一致
Fork自
DCloud / uni-app
通知
1
Star
0
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,发现更多精彩内容 >>
提交
f0414881
编写于
8月 16, 2021
作者:
fxy060608
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(h5): wxs
上级
9cabb543
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
88 addition
and
28 deletion
+88
-28
packages/uni-h5-vue/dist/vue.runtime.cjs.js
packages/uni-h5-vue/dist/vue.runtime.cjs.js
+22
-7
packages/uni-h5-vue/dist/vue.runtime.compat.cjs.js
packages/uni-h5-vue/dist/vue.runtime.compat.cjs.js
+22
-7
packages/uni-h5-vue/dist/vue.runtime.compat.esm.js
packages/uni-h5-vue/dist/vue.runtime.compat.esm.js
+22
-7
packages/uni-h5-vue/dist/vue.runtime.esm.js
packages/uni-h5-vue/dist/vue.runtime.esm.js
+22
-7
未找到文件。
packages/uni-h5-vue/dist/vue.runtime.cjs.js
浏览文件 @
f0414881
...
...
@@ -5090,7 +5090,7 @@ function baseCreateRenderer(options, createHydrationFns) {
target
.
__VUE__
=
true
;
setDevtoolsHook
(
target
.
__VUE_DEVTOOLS_GLOBAL_HOOK__
);
}
const
{
insert
:
hostInsert
,
remove
:
hostRemove
,
patchProp
:
hostPatchProp
,
forcePatchProp
:
hostForcePatchProp
,
// fixed by xxxxx
const
{
insert
:
hostInsert
,
remove
:
hostRemove
,
patchProp
:
hostPatchProp
,
forcePatchProp
:
hostForcePatchProp
,
// fixed by xxxxx
x
createElement
:
hostCreateElement
,
createText
:
hostCreateText
,
createComment
:
hostCreateComment
,
setText
:
hostSetText
,
setElementText
:
hostSetElementText
,
parentNode
:
hostParentNode
,
nextSibling
:
hostNextSibling
,
setScopeId
:
hostSetScopeId
=
shared
.
NOOP
,
cloneNode
:
hostCloneNode
,
insertStaticContent
:
hostInsertStaticContent
}
=
options
;
// Note: functions inside this closure should use `const xxx = () => {}`
// style in order to prevent being inlined by minifiers.
...
...
@@ -5380,7 +5380,8 @@ function baseCreateRenderer(options, createHydrationFns) {
// #1471 force patch value
if
(
next
!==
prev
||
key
===
'
value
'
||
(
hostForcePatchProp
&&
hostForcePatchProp
(
el
,
key
)))
{
(
hostForcePatchProp
&&
hostForcePatchProp
(
el
,
key
))
// fixed by xxxxxx
)
{
hostPatchProp
(
el
,
key
,
prev
,
next
,
isSVG
,
n1
.
children
,
parentComponent
,
parentSuspense
,
unmountChildren
);
}
}
...
...
@@ -5452,7 +5453,7 @@ function baseCreateRenderer(options, createHydrationFns) {
const
prev
=
oldProps
[
key
];
// defer patching value
if
((
next
!==
prev
&&
key
!==
'
value
'
)
||
(
hostForcePatchProp
&&
hostForcePatchProp
(
el
,
key
))
// fixed by xxxxx
(
hostForcePatchProp
&&
hostForcePatchProp
(
el
,
key
))
// fixed by xxxxx
x
)
{
hostPatchProp
(
el
,
key
,
prev
,
next
,
isSVG
,
vnode
.
children
,
parentComponent
,
parentSuspense
,
unmountChildren
);
}
...
...
@@ -9177,9 +9178,7 @@ function patchClass(el, value, isSVG) {
}
const
transitionClasses
=
el
.
_vtc
;
if
(
transitionClasses
)
{
value
=
(
value
?
[
value
,
...
transitionClasses
]
:
[...
transitionClasses
]).
join
(
'
'
);
value
=
(
value
?
[
value
,
...
transitionClasses
]
:
[...
transitionClasses
]).
join
(
'
'
);
}
if
(
value
==
null
)
{
el
.
removeAttribute
(
'
class
'
);
...
...
@@ -9513,6 +9512,21 @@ function patchWxs(el, rawName, nextValue, instance = null) {
}
const
nativeOnRE
=
/^on
[
a-z
]
/
;
// fixed by xxxxxx
const
forcePatchProp
=
(
el
,
key
)
=>
{
if
(
key
.
indexOf
(
'
change:
'
)
===
0
)
{
return
true
;
}
if
(
key
===
'
class
'
&&
el
.
__wxsClassChanged
)
{
el
.
__wxsClassChanged
=
false
;
return
true
;
}
if
(
key
===
'
style
'
&&
el
.
__wxsStyleChanged
)
{
el
.
__wxsStyleChanged
=
false
;
return
true
;
}
return
false
;
};
const
patchProp
=
(
el
,
key
,
prevValue
,
nextValue
,
isSVG
=
false
,
prevChildren
,
parentComponent
,
parentSuspense
,
unmountChildren
)
=>
{
// @ts-expect-error fixed by xxxxxx
if
(
__UNI_FEATURE_WXS__
&&
key
.
indexOf
(
'
change:
'
)
===
0
)
{
...
...
@@ -10596,7 +10610,8 @@ function setDisplay(el, value) {
el
.
style
.
display
=
value
?
el
.
_vod
:
'
none
'
;
}
const
rendererOptions
=
shared
.
extend
({
patchProp
},
nodeOps
);
// fixed by xxxxxx
const
rendererOptions
=
shared
.
extend
({
patchProp
,
forcePatchProp
},
nodeOps
);
// lazy create the renderer - this makes core renderer logic tree-shakable
// in case the user only imports reactivity utilities from Vue.
let
renderer
;
...
...
packages/uni-h5-vue/dist/vue.runtime.compat.cjs.js
浏览文件 @
f0414881
...
...
@@ -6291,7 +6291,7 @@ function baseCreateRenderer(options, createHydrationFns) {
target
.
__VUE__
=
true
;
setDevtoolsHook
(
target
.
__VUE_DEVTOOLS_GLOBAL_HOOK__
);
}
const
{
insert
:
hostInsert
,
remove
:
hostRemove
,
patchProp
:
hostPatchProp
,
forcePatchProp
:
hostForcePatchProp
,
// fixed by xxxxx
const
{
insert
:
hostInsert
,
remove
:
hostRemove
,
patchProp
:
hostPatchProp
,
forcePatchProp
:
hostForcePatchProp
,
// fixed by xxxxx
x
createElement
:
hostCreateElement
,
createText
:
hostCreateText
,
createComment
:
hostCreateComment
,
setText
:
hostSetText
,
setElementText
:
hostSetElementText
,
parentNode
:
hostParentNode
,
nextSibling
:
hostNextSibling
,
setScopeId
:
hostSetScopeId
=
NOOP
,
cloneNode
:
hostCloneNode
,
insertStaticContent
:
hostInsertStaticContent
}
=
options
;
// Note: functions inside this closure should use `const xxx = () => {}`
// style in order to prevent being inlined by minifiers.
...
...
@@ -6581,7 +6581,8 @@ function baseCreateRenderer(options, createHydrationFns) {
// #1471 force patch value
if
(
next
!==
prev
||
key
===
'
value
'
||
(
hostForcePatchProp
&&
hostForcePatchProp
(
el
,
key
)))
{
(
hostForcePatchProp
&&
hostForcePatchProp
(
el
,
key
))
// fixed by xxxxxx
)
{
hostPatchProp
(
el
,
key
,
prev
,
next
,
isSVG
,
n1
.
children
,
parentComponent
,
parentSuspense
,
unmountChildren
);
}
}
...
...
@@ -6653,7 +6654,7 @@ function baseCreateRenderer(options, createHydrationFns) {
const
prev
=
oldProps
[
key
];
// defer patching value
if
((
next
!==
prev
&&
key
!==
'
value
'
)
||
(
hostForcePatchProp
&&
hostForcePatchProp
(
el
,
key
))
// fixed by xxxxx
(
hostForcePatchProp
&&
hostForcePatchProp
(
el
,
key
))
// fixed by xxxxx
x
)
{
hostPatchProp
(
el
,
key
,
prev
,
next
,
isSVG
,
vnode
.
children
,
parentComponent
,
parentSuspense
,
unmountChildren
);
}
...
...
@@ -11027,9 +11028,7 @@ function patchClass(el, value, isSVG) {
}
const
transitionClasses
=
el
.
_vtc
;
if
(
transitionClasses
)
{
value
=
(
value
?
[
value
,
...
transitionClasses
]
:
[...
transitionClasses
]).
join
(
'
'
);
value
=
(
value
?
[
value
,
...
transitionClasses
]
:
[...
transitionClasses
]).
join
(
'
'
);
}
if
(
value
==
null
)
{
el
.
removeAttribute
(
'
class
'
);
...
...
@@ -11400,6 +11399,21 @@ function patchWxs(el, rawName, nextValue, instance = null) {
}
const
nativeOnRE
=
/^on
[
a-z
]
/
;
// fixed by xxxxxx
const
forcePatchProp
=
(
el
,
key
)
=>
{
if
(
key
.
indexOf
(
'
change:
'
)
===
0
)
{
return
true
;
}
if
(
key
===
'
class
'
&&
el
.
__wxsClassChanged
)
{
el
.
__wxsClassChanged
=
false
;
return
true
;
}
if
(
key
===
'
style
'
&&
el
.
__wxsStyleChanged
)
{
el
.
__wxsStyleChanged
=
false
;
return
true
;
}
return
false
;
};
const
patchProp
=
(
el
,
key
,
prevValue
,
nextValue
,
isSVG
=
false
,
prevChildren
,
parentComponent
,
parentSuspense
,
unmountChildren
)
=>
{
// @ts-expect-error fixed by xxxxxx
if
(
__UNI_FEATURE_WXS__
&&
key
.
indexOf
(
'
change:
'
)
===
0
)
{
...
...
@@ -12559,7 +12573,8 @@ function setDisplay(el, value) {
el
.
style
.
display
=
value
?
el
.
_vod
:
'
none
'
;
}
const
rendererOptions
=
extend
({
patchProp
},
nodeOps
);
// fixed by xxxxxx
const
rendererOptions
=
extend
({
patchProp
,
forcePatchProp
},
nodeOps
);
// lazy create the renderer - this makes core renderer logic tree-shakable
// in case the user only imports reactivity utilities from Vue.
let
renderer
;
...
...
packages/uni-h5-vue/dist/vue.runtime.compat.esm.js
浏览文件 @
f0414881
...
...
@@ -6356,7 +6356,7 @@ function baseCreateRenderer(options, createHydrationFns) {
target
.
__VUE__
=
true
;
setDevtoolsHook
(
target
.
__VUE_DEVTOOLS_GLOBAL_HOOK__
);
}
const
{
insert
:
hostInsert
,
remove
:
hostRemove
,
patchProp
:
hostPatchProp
,
forcePatchProp
:
hostForcePatchProp
,
// fixed by xxxxx
const
{
insert
:
hostInsert
,
remove
:
hostRemove
,
patchProp
:
hostPatchProp
,
forcePatchProp
:
hostForcePatchProp
,
// fixed by xxxxx
x
createElement
:
hostCreateElement
,
createText
:
hostCreateText
,
createComment
:
hostCreateComment
,
setText
:
hostSetText
,
setElementText
:
hostSetElementText
,
parentNode
:
hostParentNode
,
nextSibling
:
hostNextSibling
,
setScopeId
:
hostSetScopeId
=
NOOP
,
cloneNode
:
hostCloneNode
,
insertStaticContent
:
hostInsertStaticContent
}
=
options
;
// Note: functions inside this closure should use `const xxx = () => {}`
// style in order to prevent being inlined by minifiers.
...
...
@@ -6657,7 +6657,8 @@ function baseCreateRenderer(options, createHydrationFns) {
// #1471 force patch value
if
(
next
!==
prev
||
key
===
'
value
'
||
(
hostForcePatchProp
&&
hostForcePatchProp
(
el
,
key
)))
{
(
hostForcePatchProp
&&
hostForcePatchProp
(
el
,
key
))
// fixed by xxxxxx
)
{
hostPatchProp
(
el
,
key
,
prev
,
next
,
isSVG
,
n1
.
children
,
parentComponent
,
parentSuspense
,
unmountChildren
);
}
}
...
...
@@ -6729,7 +6730,7 @@ function baseCreateRenderer(options, createHydrationFns) {
const
prev
=
oldProps
[
key
];
// defer patching value
if
((
next
!==
prev
&&
key
!==
'
value
'
)
||
(
hostForcePatchProp
&&
hostForcePatchProp
(
el
,
key
))
// fixed by xxxxx
(
hostForcePatchProp
&&
hostForcePatchProp
(
el
,
key
))
// fixed by xxxxx
x
)
{
hostPatchProp
(
el
,
key
,
prev
,
next
,
isSVG
,
vnode
.
children
,
parentComponent
,
parentSuspense
,
unmountChildren
);
}
...
...
@@ -11108,9 +11109,7 @@ function patchClass(el, value, isSVG) {
}
const
transitionClasses
=
el
.
_vtc
;
if
(
transitionClasses
)
{
value
=
(
value
?
[
value
,
...
transitionClasses
]
:
[...
transitionClasses
]).
join
(
'
'
);
value
=
(
value
?
[
value
,
...
transitionClasses
]
:
[...
transitionClasses
]).
join
(
'
'
);
}
if
(
value
==
null
)
{
el
.
removeAttribute
(
'
class
'
);
...
...
@@ -11482,6 +11481,21 @@ function patchWxs(el, rawName, nextValue, instance = null) {
}
const
nativeOnRE
=
/^on
[
a-z
]
/
;
// fixed by xxxxxx
const
forcePatchProp
=
(
el
,
key
)
=>
{
if
(
key
.
indexOf
(
'
change:
'
)
===
0
)
{
return
true
;
}
if
(
key
===
'
class
'
&&
el
.
__wxsClassChanged
)
{
el
.
__wxsClassChanged
=
false
;
return
true
;
}
if
(
key
===
'
style
'
&&
el
.
__wxsStyleChanged
)
{
el
.
__wxsStyleChanged
=
false
;
return
true
;
}
return
false
;
};
const
patchProp
=
(
el
,
key
,
prevValue
,
nextValue
,
isSVG
=
false
,
prevChildren
,
parentComponent
,
parentSuspense
,
unmountChildren
)
=>
{
// @ts-expect-error fixed by xxxxxx
if
(
__UNI_FEATURE_WXS__
&&
key
.
indexOf
(
'
change:
'
)
===
0
)
{
...
...
@@ -12664,7 +12678,8 @@ function setDisplay(el, value) {
el
.
style
.
display
=
value
?
el
.
_vod
:
'
none
'
;
}
const
rendererOptions
=
extend
({
patchProp
},
nodeOps
);
// fixed by xxxxxx
const
rendererOptions
=
extend
({
patchProp
,
forcePatchProp
},
nodeOps
);
// lazy create the renderer - this makes core renderer logic tree-shakable
// in case the user only imports reactivity utilities from Vue.
let
renderer
;
...
...
packages/uni-h5-vue/dist/vue.runtime.esm.js
浏览文件 @
f0414881
...
...
@@ -5151,7 +5151,7 @@ function baseCreateRenderer(options, createHydrationFns) {
target
.
__VUE__
=
true
;
setDevtoolsHook
(
target
.
__VUE_DEVTOOLS_GLOBAL_HOOK__
);
}
const
{
insert
:
hostInsert
,
remove
:
hostRemove
,
patchProp
:
hostPatchProp
,
forcePatchProp
:
hostForcePatchProp
,
// fixed by xxxxx
const
{
insert
:
hostInsert
,
remove
:
hostRemove
,
patchProp
:
hostPatchProp
,
forcePatchProp
:
hostForcePatchProp
,
// fixed by xxxxx
x
createElement
:
hostCreateElement
,
createText
:
hostCreateText
,
createComment
:
hostCreateComment
,
setText
:
hostSetText
,
setElementText
:
hostSetElementText
,
parentNode
:
hostParentNode
,
nextSibling
:
hostNextSibling
,
setScopeId
:
hostSetScopeId
=
NOOP
,
cloneNode
:
hostCloneNode
,
insertStaticContent
:
hostInsertStaticContent
}
=
options
;
// Note: functions inside this closure should use `const xxx = () => {}`
// style in order to prevent being inlined by minifiers.
...
...
@@ -5452,7 +5452,8 @@ function baseCreateRenderer(options, createHydrationFns) {
// #1471 force patch value
if
(
next
!==
prev
||
key
===
'
value
'
||
(
hostForcePatchProp
&&
hostForcePatchProp
(
el
,
key
)))
{
(
hostForcePatchProp
&&
hostForcePatchProp
(
el
,
key
))
// fixed by xxxxxx
)
{
hostPatchProp
(
el
,
key
,
prev
,
next
,
isSVG
,
n1
.
children
,
parentComponent
,
parentSuspense
,
unmountChildren
);
}
}
...
...
@@ -5524,7 +5525,7 @@ function baseCreateRenderer(options, createHydrationFns) {
const
prev
=
oldProps
[
key
];
// defer patching value
if
((
next
!==
prev
&&
key
!==
'
value
'
)
||
(
hostForcePatchProp
&&
hostForcePatchProp
(
el
,
key
))
// fixed by xxxxx
(
hostForcePatchProp
&&
hostForcePatchProp
(
el
,
key
))
// fixed by xxxxx
x
)
{
hostPatchProp
(
el
,
key
,
prev
,
next
,
isSVG
,
vnode
.
children
,
parentComponent
,
parentSuspense
,
unmountChildren
);
}
...
...
@@ -9255,9 +9256,7 @@ function patchClass(el, value, isSVG) {
}
const
transitionClasses
=
el
.
_vtc
;
if
(
transitionClasses
)
{
value
=
(
value
?
[
value
,
...
transitionClasses
]
:
[...
transitionClasses
]).
join
(
'
'
);
value
=
(
value
?
[
value
,
...
transitionClasses
]
:
[...
transitionClasses
]).
join
(
'
'
);
}
if
(
value
==
null
)
{
el
.
removeAttribute
(
'
class
'
);
...
...
@@ -9591,6 +9590,21 @@ function patchWxs(el, rawName, nextValue, instance = null) {
}
const
nativeOnRE
=
/^on
[
a-z
]
/
;
// fixed by xxxxxx
const
forcePatchProp
=
(
el
,
key
)
=>
{
if
(
key
.
indexOf
(
'
change:
'
)
===
0
)
{
return
true
;
}
if
(
key
===
'
class
'
&&
el
.
__wxsClassChanged
)
{
el
.
__wxsClassChanged
=
false
;
return
true
;
}
if
(
key
===
'
style
'
&&
el
.
__wxsStyleChanged
)
{
el
.
__wxsStyleChanged
=
false
;
return
true
;
}
return
false
;
};
const
patchProp
=
(
el
,
key
,
prevValue
,
nextValue
,
isSVG
=
false
,
prevChildren
,
parentComponent
,
parentSuspense
,
unmountChildren
)
=>
{
// @ts-expect-error fixed by xxxxxx
if
(
__UNI_FEATURE_WXS__
&&
key
.
indexOf
(
'
change:
'
)
===
0
)
{
...
...
@@ -10697,7 +10711,8 @@ function setDisplay(el, value) {
el
.
style
.
display
=
value
?
el
.
_vod
:
'
none
'
;
}
const
rendererOptions
=
extend
({
patchProp
},
nodeOps
);
// fixed by xxxxxx
const
rendererOptions
=
extend
({
patchProp
,
forcePatchProp
},
nodeOps
);
// lazy create the renderer - this makes core renderer logic tree-shakable
// in case the user only imports reactivity utilities from Vue.
let
renderer
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录