更新
This commit is contained in:
+29
@@ -0,0 +1,29 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.parseUniXUniStatistics = exports.parseUniXSplashScreen = exports.parseUniXFlexDirection = void 0;
|
||||
const shared_1 = require("@vue/shared");
|
||||
const flexDirs = ['row', 'row-reverse', 'column', 'column-reverse'];
|
||||
function parseUniXFlexDirection(manifestJson) {
|
||||
const flexDir = manifestJson?.['uni-app-x']?.['flex-direction'];
|
||||
if (flexDir && flexDirs.includes(flexDir)) {
|
||||
return flexDir;
|
||||
}
|
||||
return 'column';
|
||||
}
|
||||
exports.parseUniXFlexDirection = parseUniXFlexDirection;
|
||||
function parseUniXSplashScreen(manifestJson) {
|
||||
const splashScreen = manifestJson?.['app']?.['splashScreen'];
|
||||
if ((0, shared_1.isPlainObject)(splashScreen)) {
|
||||
return splashScreen;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
exports.parseUniXSplashScreen = parseUniXSplashScreen;
|
||||
function parseUniXUniStatistics(manifestJson) {
|
||||
const uniStatistics = manifestJson?.['app']?.['uniStatistics'];
|
||||
if ((0, shared_1.isPlainObject)(uniStatistics)) {
|
||||
return uniStatistics;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
exports.parseUniXUniStatistics = parseUniXUniStatistics;
|
||||
Reference in New Issue
Block a user