Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
uni-app
提交
91326d6a
U
uni-app
项目概览
DCloud
/
uni-app
3 个月 前同步成功
通知
720
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,发现更多精彩内容 >>
提交
91326d6a
编写于
11月 14, 2019
作者:
Q
qiang
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'dev' of github.com:dcloudio/uni-app into dev
上级
1ee97a65
d5594175
变更
7
显示空白变更内容
内联
并排
Showing
7 changed file
with
34 addition
and
12 deletion
+34
-12
packages/uni-mp-alipay/dist/index.js
packages/uni-mp-alipay/dist/index.js
+9
-4
packages/uni-mp-qq/dist/index.js
packages/uni-mp-qq/dist/index.js
+12
-0
packages/uni-mp-weixin/dist/index.js
packages/uni-mp-weixin/dist/index.js
+1
-1
src/platforms/mp-alipay/runtime/wrapper/component-parser.js
src/platforms/mp-alipay/runtime/wrapper/component-parser.js
+8
-2
src/platforms/mp-alipay/runtime/wrapper/util.js
src/platforms/mp-alipay/runtime/wrapper/util.js
+1
-2
src/platforms/mp-weixin/runtime/wrapper/app-base-parser.js
src/platforms/mp-weixin/runtime/wrapper/app-base-parser.js
+1
-1
src/platforms/mp-weixin/runtime/wrapper/component-base-parser.js
...tforms/mp-weixin/runtime/wrapper/component-base-parser.js
+2
-2
未找到文件。
packages/uni-mp-alipay/dist/index.js
浏览文件 @
91326d6a
...
...
@@ -1667,8 +1667,7 @@ const customize = cached((str) => {
return
camelize
(
str
.
replace
(
customizeRE
,
'
-
'
))
});
// 钉钉小程序是 component2 模式
const
isComponent2
=
my
.
dd
||
my
.
canIUse
(
'
component2
'
);
const
isComponent2
=
my
.
canIUse
(
'
component2
'
);
const
mocks
=
[
'
$id
'
];
...
...
@@ -2024,7 +2023,13 @@ function parseComponent (vueComponentOptions) {
data
:
initData
(
vueOptions
,
Vue
.
prototype
),
props
,
didMount
()
{
if
(
my
.
dd
)
{
// 钉钉小程序底层基础库有 bug,组件嵌套使用时,在 didMount 中无法及时调用 props 中的方法
setTimeout
(()
=>
{
initVm
.
call
(
this
,
VueComponent
);
},
4
);
}
else
{
initVm
.
call
(
this
,
VueComponent
);
}
initSpecialMethods
(
this
);
...
...
packages/uni-mp-qq/dist/index.js
浏览文件 @
91326d6a
...
...
@@ -1214,6 +1214,11 @@ function parseBaseApp (vm, {
if
(
this
.
$vm
)
{
// 已经初始化过了,主要是为了百度,百度 onShow 在 onLaunch 之前
return
}
{
if
(
!
wx
.
canIUse
(
'
nextTick
'
))
{
// 事实 上2.2.3 即可,简单使用 2.3.0 的 nextTick 判断
console
.
error
(
'
当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上
'
);
}
}
this
.
$vm
=
vm
;
...
...
@@ -1339,6 +1344,13 @@ function parseBaseComponent (vueComponentOptions, {
addGlobalClass
:
true
};
{
// 微信 multipleSlots 部分情况有 bug,导致内容顺序错乱 如 u-list,提供覆盖选项
if
(
vueOptions
[
'
mp-weixin
'
]
&&
vueOptions
[
'
mp-weixin
'
][
'
options
'
])
{
Object
.
assign
(
options
,
vueOptions
[
'
mp-weixin
'
][
'
options
'
]);
}
}
const
componentOptions
=
{
options
,
data
:
initData
(
vueOptions
,
Vue
.
prototype
),
...
...
packages/uni-mp-weixin/dist/index.js
浏览文件 @
91326d6a
...
...
@@ -1281,7 +1281,7 @@ function parseBaseComponent (vueComponentOptions, {
};
{
// 微信
multipleSlots
部分情况有 bug,导致内容顺序错乱 如 u-list,提供覆盖选项
// 微信
multipleSlots
部分情况有 bug,导致内容顺序错乱 如 u-list,提供覆盖选项
if
(
vueOptions
[
'
mp-weixin
'
]
&&
vueOptions
[
'
mp-weixin
'
][
'
options
'
])
{
Object
.
assign
(
options
,
vueOptions
[
'
mp-weixin
'
][
'
options
'
]);
}
...
...
src/platforms/mp-alipay/runtime/wrapper/component-parser.js
浏览文件 @
91326d6a
...
...
@@ -92,7 +92,13 @@ export default function parseComponent (vueComponentOptions) {
data
:
initData
(
vueOptions
,
Vue
.
prototype
),
props
,
didMount
()
{
if
(
my
.
dd
)
{
// 钉钉小程序底层基础库有 bug,组件嵌套使用时,在 didMount 中无法及时调用 props 中的方法
setTimeout
(()
=>
{
initVm
.
call
(
this
,
VueComponent
)
},
4
)
}
else
{
initVm
.
call
(
this
,
VueComponent
)
}
initSpecialMethods
(
this
)
...
...
src/platforms/mp-alipay/runtime/wrapper/util.js
浏览文件 @
91326d6a
...
...
@@ -16,8 +16,7 @@ const customize = cached((str) => {
return
camelize
(
str
.
replace
(
customizeRE
,
'
-
'
))
})
// 钉钉小程序是 component2 模式
export
const
isComponent2
=
my
.
dd
||
my
.
canIUse
(
'
component2
'
)
export
const
isComponent2
=
my
.
canIUse
(
'
component2
'
)
export
const
mocks
=
[
'
$id
'
]
...
...
src/platforms/mp-weixin/runtime/wrapper/app-base-parser.js
浏览文件 @
91326d6a
...
...
@@ -52,7 +52,7 @@ export default function parseBaseApp (vm, {
if
(
this
.
$vm
)
{
// 已经初始化过了,主要是为了百度,百度 onShow 在 onLaunch 之前
return
}
if
(
__PLATFORM__
===
'
mp-weixin
'
)
{
if
(
__PLATFORM__
===
'
mp-weixin
'
||
__PLATFORM__
===
'
mp-qq
'
)
{
if
(
!
wx
.
canIUse
(
'
nextTick
'
))
{
// 事实 上2.2.3 即可,简单使用 2.3.0 的 nextTick 判断
console
.
error
(
'
当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上
'
)
}
...
...
src/platforms/mp-weixin/runtime/wrapper/component-base-parser.js
浏览文件 @
91326d6a
...
...
@@ -26,8 +26,8 @@ export default function parseBaseComponent (vueComponentOptions, {
addGlobalClass
:
true
}
if
(
__PLATFORM__
===
'
mp-weixin
'
)
{
// 微信
multipleSlots
部分情况有 bug,导致内容顺序错乱 如 u-list,提供覆盖选项
if
(
__PLATFORM__
===
'
mp-weixin
'
||
__PLATFORM__
===
'
mp-qq
'
)
{
// 微信
multipleSlots
部分情况有 bug,导致内容顺序错乱 如 u-list,提供覆盖选项
if
(
vueOptions
[
'
mp-weixin
'
]
&&
vueOptions
[
'
mp-weixin
'
][
'
options
'
])
{
Object
.
assign
(
options
,
vueOptions
[
'
mp-weixin
'
][
'
options
'
])
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录