Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
我本凡人 一念云泥
uni-app
提交
d248cf2c
uni-app
项目概览
我本凡人 一念云泥
/
uni-app
与 Fork 源项目一致
Fork自
DCloud / uni-app
通知
4
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
d248cf2c
编写于
7月 23, 2020
作者:
fxy060608
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
build:all
上级
9394389c
变更
10
展开全部
隐藏空白更改
内联
并排
Showing
10 changed file
with
61 addition
and
30 deletion
+61
-30
packages/uni-app-plus/dist/index.js
packages/uni-app-plus/dist/index.js
+5
-0
packages/uni-h5/dist/index.umd.min.js
packages/uni-h5/dist/index.umd.min.js
+1
-1
packages/uni-mp-alipay/dist/index.js
packages/uni-mp-alipay/dist/index.js
+16
-9
packages/uni-mp-baidu/dist/index.js
packages/uni-mp-baidu/dist/index.js
+17
-18
packages/uni-mp-qq/dist/index.js
packages/uni-mp-qq/dist/index.js
+5
-0
packages/uni-mp-toutiao/dist/index.js
packages/uni-mp-toutiao/dist/index.js
+5
-0
packages/uni-mp-weixin/dist/index.js
packages/uni-mp-weixin/dist/index.js
+5
-0
packages/uni-quickapp-native/dist/vue.dev.js
packages/uni-quickapp-native/dist/vue.dev.js
+1
-1
packages/uni-quickapp-native/dist/vue.prod.js
packages/uni-quickapp-native/dist/vue.prod.js
+1
-1
packages/uni-quickapp-webview/dist/index.js
packages/uni-quickapp-webview/dist/index.js
+5
-0
未找到文件。
packages/uni-app-plus/dist/index.js
浏览文件 @
d248cf2c
...
...
@@ -837,6 +837,11 @@ function initProperties (props, isBehavior = false, file = '') {
type
:
String
,
value
:
''
};
// 用于字节跳动小程序模拟抽象节点
properties
.
generic
=
{
type
:
Object
,
value
:
null
};
properties
.
vueSlots
=
{
// 小程序不能直接定义 $slots 的 props,所以通过 vueSlots 转换到 $slots
type
:
null
,
value
:
[],
...
...
packages/uni-h5/dist/index.umd.min.js
浏览文件 @
d248cf2c
此差异已折叠。
点击以展开。
packages/uni-mp-alipay/dist/index.js
浏览文件 @
d248cf2c
...
...
@@ -640,16 +640,18 @@ const protocols = { // 需要做转换的 API 列表
getSavedFileInfo
:
{
args
:
{
filePath
:
'
apFilePath
'
},
returnValue
(
result
)
{
if
(
result
.
fileList
&&
result
.
fileList
.
length
)
{
result
.
fileList
.
forEach
(
file
=>
{
file
.
filePath
=
file
.
apFilePath
;
delete
file
.
apFilePath
;
});
}
return
{}
}
},
getSavedFileList
:
{
returnValue
(
result
)
{
if
(
result
.
fileList
&&
result
.
fileList
.
length
)
{
result
.
fileList
.
forEach
(
file
=>
{
file
.
filePath
=
file
.
apFilePath
;
delete
file
.
apFilePath
;
});
}
return
{}
}
},
removeSavedFile
:
{
args
:
{
...
...
@@ -1314,6 +1316,11 @@ function initProperties (props, isBehavior = false, file = '') {
type
:
String
,
value
:
''
};
// 用于字节跳动小程序模拟抽象节点
properties
.
generic
=
{
type
:
Object
,
value
:
null
};
properties
.
vueSlots
=
{
// 小程序不能直接定义 $slots 的 props,所以通过 vueSlots 转换到 $slots
type
:
null
,
value
:
[],
...
...
packages/uni-mp-baidu/dist/index.js
浏览文件 @
d248cf2c
...
...
@@ -969,6 +969,11 @@ function initProperties (props, isBehavior = false, file = '') {
type
:
String
,
value
:
''
};
// 用于字节跳动小程序模拟抽象节点
properties
.
generic
=
{
type
:
Object
,
value
:
null
};
properties
.
vueSlots
=
{
// 小程序不能直接定义 $slots 的 props,所以通过 vueSlots 转换到 $slots
type
:
null
,
value
:
[],
...
...
@@ -1574,10 +1579,10 @@ function parseComponent (vueOptions) {
const
componentOptions
=
parseBaseComponent
(
vueOptions
,
{
isPage
,
initRelation
});
// 关于百度小程序生命周期的说明(组件作为页面时):
// lifetimes:attached --> methods:onShow --> methods:onLoad --> methods:onReady
});
// 关于百度小程序生命周期的说明(组件作为页面时):
// lifetimes:attached --> methods:onShow --> methods:onLoad --> methods:onReady
// 这里在强制将onShow挪到onLoad之后触发,另外一处修改在page-parser.js
const
oldAttached
=
componentOptions
.
lifetimes
.
attached
;
componentOptions
.
lifetimes
.
attached
=
function
attached
()
{
...
...
@@ -1587,28 +1592,22 @@ function parseComponent (vueOptions) {
this
.
pageinstance
.
$vm
=
this
.
$vm
;
if
(
hasOwn
(
this
.
pageinstance
,
'
_$args
'
))
{
this
.
$vm
.
$mp
.
query
=
this
.
pageinstance
.
_$args
;
this
.
$vm
.
__call_hook
(
'
onLoad
'
,
this
.
pageinstance
.
_$args
);
this
.
$vm
.
__call_hook
(
'
onLoad
'
,
this
.
pageinstance
.
_$args
);
this
.
$vm
.
__call_hook
(
'
onShow
'
);
delete
this
.
pageinstance
.
_$args
;
}
}
else
{
// 百度小程序组件不触发methods内的onReady
if
(
this
.
$vm
)
{
this
.
$vm
.
_isMounted
=
true
;
this
.
$vm
.
__call_hook
(
'
mounted
'
);
}
}
else
{
// 百度小程序组件不触发methods内的onReady
if
(
this
.
$vm
)
{
this
.
$vm
.
_isMounted
=
true
;
this
.
$vm
.
__call_hook
(
'
mounted
'
);
}
}
};
if
(
newLifecycle
)
{
componentOptions
.
methods
.
onReady
=
componentOptions
.
lifetimes
.
ready
;
delete
componentOptions
.
lifetimes
.
ready
;
componentOptions
.
methods
.
onReady
=
function
()
{
if
(
this
.
$vm
)
{
this
.
$vm
.
_isMounted
=
true
;
this
.
$vm
.
__call_hook
(
'
mounted
'
);
this
.
$vm
.
__call_hook
(
'
onReady
'
);
}
};
}
componentOptions
.
messages
=
{
...
...
packages/uni-mp-qq/dist/index.js
浏览文件 @
d248cf2c
...
...
@@ -895,6 +895,11 @@ function initProperties (props, isBehavior = false, file = '') {
type
:
String
,
value
:
''
};
// 用于字节跳动小程序模拟抽象节点
properties
.
generic
=
{
type
:
Object
,
value
:
null
};
properties
.
vueSlots
=
{
// 小程序不能直接定义 $slots 的 props,所以通过 vueSlots 转换到 $slots
type
:
null
,
value
:
[],
...
...
packages/uni-mp-toutiao/dist/index.js
浏览文件 @
d248cf2c
...
...
@@ -987,6 +987,11 @@ function initProperties (props, isBehavior = false, file = '') {
type
:
String
,
value
:
''
};
// 用于字节跳动小程序模拟抽象节点
properties
.
generic
=
{
type
:
Object
,
value
:
null
};
properties
.
vueSlots
=
{
// 小程序不能直接定义 $slots 的 props,所以通过 vueSlots 转换到 $slots
type
:
null
,
value
:
[],
...
...
packages/uni-mp-weixin/dist/index.js
浏览文件 @
d248cf2c
...
...
@@ -852,6 +852,11 @@ function initProperties (props, isBehavior = false, file = '') {
type
:
String
,
value
:
''
};
// 用于字节跳动小程序模拟抽象节点
properties
.
generic
=
{
type
:
Object
,
value
:
null
};
properties
.
vueSlots
=
{
// 小程序不能直接定义 $slots 的 props,所以通过 vueSlots 转换到 $slots
type
:
null
,
value
:
[],
...
...
packages/uni-quickapp-native/dist/vue.dev.js
浏览文件 @
d248cf2c
此差异已折叠。
点击以展开。
packages/uni-quickapp-native/dist/vue.prod.js
浏览文件 @
d248cf2c
此差异已折叠。
点击以展开。
packages/uni-quickapp-webview/dist/index.js
浏览文件 @
d248cf2c
...
...
@@ -837,6 +837,11 @@ function initProperties (props, isBehavior = false, file = '') {
type
:
String
,
value
:
''
};
// 用于字节跳动小程序模拟抽象节点
properties
.
generic
=
{
type
:
Object
,
value
:
null
};
properties
.
vueSlots
=
{
// 小程序不能直接定义 $slots 的 props,所以通过 vueSlots 转换到 $slots
type
:
null
,
value
:
[],
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录