提交 fb05f74d 编写于 作者: zhujiamin's avatar zhujiamin

添加风格改变组件

上级 461046eb
......@@ -2,7 +2,7 @@
TARGET=PSSYSAPP
</#ibiztemplate>
<template>
<ion-app id="app" :class="themeClass" class="ios ion-page hydrated">
<ion-app id="app" :class="[themeClass,alignClass,navigationClass]" class="ios ion-page hydrated">
<#if app.getAllRefPSAppViews()??>
<#list app.getAllRefPSAppViews() as view>
<#if view.getViewType() == "APPSTARTVIEW" >
......@@ -39,6 +39,38 @@ export default class App extends Vue {
}
}
/**
* 当前文本对齐方式
*
* @readonly
* @memberof App
*/
get alignClass() {
if (this.$router.app.$store.state.selectTextAlign) {
return this.$router.app.$store.state.selectTextAlign;
} else if (localStorage.getItem('align-class')) {
return localStorage.getItem('align-class');
} else {
return 'app-text-align-right';
}
}
/**
* 当前导航栏样式
*
* @readonly
* @memberof App
*/
get navigationClass() {
if (this.$router.app.$store.state.selectNaviStyle) {
return this.$router.app.$store.state.selectNaviStyle;
} else if (localStorage.getItem('navigation-class')) {
return localStorage.getItem('navigation-class');
} else {
return 'app-navi-new';
}
}
/**
* 设置第三方应用
*
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册