Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
一把秋刀鱼
uni-app
提交
77c1cdaf
U
uni-app
项目概览
一把秋刀鱼
/
uni-app
与 Fork 源项目一致
Fork自
DCloud / uni-app
通知
4
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,发现更多精彩内容 >>
提交
77c1cdaf
编写于
2月 24, 2020
作者:
fxy060608
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'dev' of
https://github.com/dcloudio/uni-app
into alpha
上级
b7149034
a728cd2a
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
13 addition
and
5 deletion
+13
-5
packages/vue-cli-plugin-uni/lib/app-plus/index.js
packages/vue-cli-plugin-uni/lib/app-plus/index.js
+5
-1
packages/vue-cli-plugin-uni/lib/mp.js
packages/vue-cli-plugin-uni/lib/mp.js
+5
-1
src/platforms/h5/components/page/index.vue
src/platforms/h5/components/page/index.vue
+1
-2
src/platforms/h5/components/page/pageHead.vue
src/platforms/h5/components/page/pageHead.vue
+2
-1
未找到文件。
packages/vue-cli-plugin-uni/lib/app-plus/index.js
浏览文件 @
77c1cdaf
...
...
@@ -25,6 +25,7 @@ const {
const
runtimePath
=
'
@dcloudio/uni-mp-weixin/dist/mp.js
'
const
wxsPath
=
'
@dcloudio/uni-mp-weixin/dist/wxs.js
'
const
uniCloudPath
=
path
.
resolve
(
__dirname
,
'
../../packages/uni-cloud/dist/index.js
'
)
const
cryptoPath
=
path
.
resolve
(
__dirname
,
'
../crypto.js
'
)
function
getProvides
(
isAppService
)
{
if
(
isAppService
)
{
...
...
@@ -37,7 +38,10 @@ function getProvides (isAppService) {
'
Behavior
'
:
[
runtimePath
,
'
Behavior
'
],
'
getDate
'
:
[
wxsPath
,
'
getDate
'
],
'
getRegExp
'
:
[
wxsPath
,
'
getRegExp
'
],
'
uniCloud
'
:
[
uniCloudPath
,
'
default
'
]
'
uniCloud
'
:
[
uniCloudPath
,
'
default
'
],
'
crypto
'
:
[
cryptoPath
,
'
default
'
],
'
window.crypto
'
:
[
cryptoPath
,
'
default
'
],
'
global.crypto
'
:
[
cryptoPath
,
'
default
'
]
}
}
return
{
// app-view
...
...
packages/vue-cli-plugin-uni/lib/mp.js
浏览文件 @
77c1cdaf
...
...
@@ -44,7 +44,11 @@ function getProvides () {
process
.
env
.
UNI_USING_V8
)
{
provides
[
'
__f__
'
]
=
[
path
.
resolve
(
__dirname
,
'
format-log.js
'
),
'
default
'
]
provides
[
'
crypto
'
]
=
[
path
.
resolve
(
__dirname
,
'
crypto.js
'
),
'
default
'
]
const
cryptoProvide
=
[
path
.
resolve
(
__dirname
,
'
crypto.js
'
),
'
default
'
]
provides
[
'
crypto
'
]
=
cryptoProvide
provides
[
'
window.crypto
'
]
=
cryptoProvide
provides
[
'
global.crypto
'
]
=
cryptoProvide
}
// TODO 目前依赖库 megalo 通过判断 wx 对象是否存在来识别平台做不同处理
...
...
src/platforms/h5/components/page/index.vue
浏览文件 @
77c1cdaf
...
...
@@ -159,8 +159,7 @@ export default {
titleNView
=
Object
.
assign
({},
{
type
:
this
.
navigationStyle
===
'
custom
'
?
'
none
'
:
'
default
'
},
this
.
transparentTitle
in
titleNViewTypeList
?
{
type
:
titleNViewTypeList
[
this
.
transparentTitle
],
backgroundColor
:
'
rgba(0,0,0,0)
'
type
:
titleNViewTypeList
[
this
.
transparentTitle
]
}
:
null
,
typeof
titleNView
===
'
object
'
?
titleNView
:
(
typeof
titleNView
===
'
boolean
'
?
{
type
:
titleNView
?
'
default
'
:
'
none
'
}
:
null
))
...
...
src/platforms/h5/components/page/pageHead.vue
浏览文件 @
77c1cdaf
...
...
@@ -108,7 +108,8 @@ uni-page-head {
uni-page-head
.uni-page-head
{
position
:
fixed
;
left
:
0
;
left
:
0
;
top
:
0
;
width
:
100%
;
height
:
44px
;
height
:
calc
(
44px
+
constant
(
safe-area-inset-top
));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录