提交 c8bf9142 编写于 作者: fxy060608's avatar fxy060608

feat(v3): nvueCompiler=weex

上级 c783c3d9
......@@ -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 (
......@@ -9000,7 +9010,8 @@ var serviceContext = (function () {
cancelColor = '#000000',
confirmText = '确定',
confirmColor = '#3CC51F'
} = {}, callbackId) {
} = {}, callbackId) {
content = content || ' ';
plus.nativeUI.confirm(content, (e) => {
if (showCancel) {
invoke$1(callbackId, {
......@@ -11280,7 +11291,7 @@ var serviceContext = (function () {
}
abort () {
invokeMethod('operateRequestTask', {
invokeMethod('operateDownloadTask', {
downloadTaskId: this.id,
operationType: 'abort'
});
......
......@@ -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'
// }
}
})
}
......
......@@ -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
)
!process.env.UNI_USING_V3 &&
!process.env.UNI_USING_NATIVE &&
!process.env.UNI_USING_V3_NATIVE
) {
if (!fs.existsSync(path.resolve(process.env.UNI_HBUILDERX_PLUGINS, 'weapp-tools/lib/index.js'))) {
console.error('请使用 HBuilderX 编译运行至 app-plus 平台')
......
......@@ -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 !== false) {
if (uniStatistics.enable === true) {
process.env.UNI_USING_STAT = true
if (!process.UNI_STAT_CONFIG.appid && process.env.NODE_ENV === 'production') {
console.log()
......
......@@ -55,8 +55,9 @@ module.exports = function definePages (appJson) {
const __uniRoutes = parseRoutes(appJson)
delete appJson.page
delete appJson.usingComponents
delete appJson.nvueCompiler
delete appJson.usingComponents
// 保留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.
先完成此消息的编辑!
想要评论请 注册