提交 c0fb6126 编写于 作者: Q qiang

feat(App): nvue set defaultFontSize 16px

上级 ef615b04
......@@ -147,11 +147,7 @@ function normalizeNodes (nodes, ctx, options) {
}
function getRichText (weex) {
const {
scale,
deviceWidth
} = weex.config.env
const defaultFontSize = deviceWidth / scale / 20
const defaultFontSize = 16
return {
props: {
nodes: {
......
......@@ -101,7 +101,7 @@ export function showPage ({
animationDuration: 200,
uniNView: {
path: `${(typeof process === 'object' && process.env && process.env.VUE_APP_TEMPLATE_PATH) || ''}/${url}.js`,
defaultFontSize: plus_.screen.resolutionWidth / 20,
defaultFontSize: 16,
viewport: plus_.screen.resolutionWidth
}
}
......
......@@ -27,7 +27,7 @@ export function registerConfig (config, Vue) {
if (__uniConfig.nvueCompiler === 'uni-app') {
__uniConfig.viewport = plus.screen.resolutionWidth
__uniConfig.defaultFontSize = __uniConfig.viewport / 20
__uniConfig.defaultFontSize = 16
}
parseRoutes(__uniConfig)
......@@ -90,4 +90,4 @@ export function initEntryPage () {
if (process.env.NODE_ENV !== 'production') {
console.log(`[uni-app] entryPagePath(${entryPagePath + entryPageQuery})`)
}
}
}
......@@ -101,7 +101,7 @@ export function showPage ({
animationDuration: 200,
uniNView: {
path: `${(typeof process === 'object' && process.env && process.env.VUE_APP_TEMPLATE_PATH) || ''}/${url}.js`,
defaultFontSize: plus_.screen.resolutionWidth / 20,
defaultFontSize: 16,
viewport: plus_.screen.resolutionWidth
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册