Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
uni-app
提交
c8bf9142
U
uni-app
项目概览
DCloud
/
uni-app
2 个月 前同步成功
通知
718
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,发现更多精彩内容 >>
提交
c8bf9142
编写于
4月 28, 2020
作者:
fxy060608
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat(v3): nvueCompiler=weex
上级
c783c3d9
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
21 addition
and
22 deletion
+21
-22
packages/uni-app-plus/dist/index.v3.js
packages/uni-app-plus/dist/index.v3.js
+13
-2
packages/uni-cli-shared/lib/pages.js
packages/uni-cli-shared/lib/pages.js
+0
-7
packages/vue-cli-plugin-hbuilderx/index.js
packages/vue-cli-plugin-hbuilderx/index.js
+3
-9
packages/vue-cli-plugin-uni/lib/env.js
packages/vue-cli-plugin-uni/lib/env.js
+2
-2
packages/webpack-uni-pages-loader/lib/platforms/app-plus/app-config-service.js
...pages-loader/lib/platforms/app-plus/app-config-service.js
+3
-2
未找到文件。
packages/uni-app-plus/dist/index.v3.js
浏览文件 @
c8bf9142
...
...
@@ -7661,6 +7661,16 @@ var serviceContext = (function () {
}
});
const
backgroundColor
=
routeOptions
.
window
.
backgroundColor
;
if
(
backgroundColor
)
{
if
(
!
webviewStyle
.
background
)
{
webviewStyle
.
background
=
backgroundColor
;
}
if
(
!
webviewStyle
.
backgroundColorTop
)
{
webviewStyle
.
backgroundColorTop
=
backgroundColor
;
}
}
const
titleNView
=
parseTitleNView
(
routeOptions
);
if
(
titleNView
)
{
if
(
...
...
@@ -9001,6 +9011,7 @@ var serviceContext = (function () {
confirmText
=
'
确定
'
,
confirmColor
=
'
#3CC51F
'
}
=
{},
callbackId
)
{
content
=
content
||
'
'
;
plus
.
nativeUI
.
confirm
(
content
,
(
e
)
=>
{
if
(
showCancel
)
{
invoke$1
(
callbackId
,
{
...
...
@@ -11280,7 +11291,7 @@ var serviceContext = (function () {
}
abort
()
{
invokeMethod
(
'
operate
Request
Task
'
,
{
invokeMethod
(
'
operate
Download
Task
'
,
{
downloadTaskId
:
this
.
id
,
operationType
:
'
abort
'
});
...
...
packages/uni-cli-shared/lib/pages.js
浏览文件 @
c8bf9142
...
...
@@ -129,14 +129,7 @@ function isValidPage (page, root = '') {
if
(
subNVuePath
)
{
subNVuePath
=
subNVue
.
path
.
split
(
'
?
'
)[
0
]
const
subNVuePagePath
=
removeExt
(
path
.
join
(
root
,
subNVuePath
))
// if (process.env.UNI_USING_NVUE_COMPILER) {
process
.
UNI_NVUE_ENTRY
[
subNVuePagePath
]
=
getNVueMainJsPath
(
subNVuePagePath
)
// } else {
// process.UNI_NVUE_ENTRY[subNVuePagePath] = path.resolve(process.env.UNI_INPUT_DIR,
// subNVuePagePath +
// '.nvue') + '?entry'
// }
}
})
}
...
...
packages/vue-cli-plugin-hbuilderx/index.js
浏览文件 @
c8bf9142
...
...
@@ -13,15 +13,9 @@ module.exports = (api, options) => { // 仅处理 app-plus 相关逻辑
}
if
(
(
!
process
.
env
.
UNI_USING_V3
&&
!
process
.
env
.
UNI_USING_NATIVE
&&
!
process
.
env
.
UNI_USING_V3_NATIVE
)
||
(
process
.
env
.
UNI_USING_NATIVE
&&
!
process
.
env
.
UNI_USING_NVUE_COMPILER
)
)
{
if
(
!
fs
.
existsSync
(
path
.
resolve
(
process
.
env
.
UNI_HBUILDERX_PLUGINS
,
'
weapp-tools/lib/index.js
'
)))
{
console
.
error
(
'
请使用 HBuilderX 编译运行至 app-plus 平台
'
)
...
...
packages/vue-cli-plugin-uni/lib/env.js
浏览文件 @
c8bf9142
...
...
@@ -201,7 +201,7 @@ if (process.env.UNI_PLATFORM === 'app-plus') {
platformOptions
.
usingComponents
=
true
}
process
.
env
.
UNI_OUTPUT_TMP_DIR
=
''
isNVueCompiler
=
true
// v3 目前仅支持 uni-app 模式
//
isNVueCompiler = true // v3 目前仅支持 uni-app 模式
}
else
if
(
platformOptions
.
renderer
===
'
native
'
)
{
// 纯原生目前不提供 cache
delete
process
.
env
.
UNI_USING_CACHE
...
...
@@ -255,7 +255,7 @@ if (
platformOptions
.
uniStatistics
||
{}
)
if
(
uniStatistics
.
enable
!==
fals
e
)
{
if
(
uniStatistics
.
enable
===
tru
e
)
{
process
.
env
.
UNI_USING_STAT
=
true
if
(
!
process
.
UNI_STAT_CONFIG
.
appid
&&
process
.
env
.
NODE_ENV
===
'
production
'
)
{
console
.
log
()
...
...
packages/webpack-uni-pages-loader/lib/platforms/app-plus/app-config-service.js
浏览文件 @
c8bf9142
...
...
@@ -56,7 +56,8 @@ module.exports = function definePages (appJson) {
delete
appJson
.
page
delete
appJson
.
usingComponents
delete
appJson
.
nvueCompiler
// 保留nvueCompiler
// delete appJson.nvueCompiler
// 保留renderer
// delete appJson.renderer
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录