Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
iBiz-Vue-Mob-R7-Res
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz-R7前端标准模板
iBiz-Vue-Mob-R7-Res
提交
ce7934bc
提交
ce7934bc
编写于
10月 12, 2020
作者:
KK
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
增加应用级config
上级
77992ff9
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
58 行增加
和
13 行删除
+58
-13
appConfig.ts
src/config/appConfig.ts
+55
-0
app-mob-select-theme.vue
.../components/app-mob-select-theme/app-mob-select-theme.vue
+3
-3
config.ts
src/ibiz-core/components/app-mob-select-theme/config.ts
+0
-10
未找到文件。
src/config/appConfig.ts
0 → 100644
浏览文件 @
ce7934bc
export
const
appConfig
=
{
//默认主题
defaultTheme
:
"app-dark-blue-theme"
,
//主题集合
themes
:
[
{
value
:
"app-blue-theme"
,
text
:
"魅力紫"
,
background
:
"#705697"
,
color
:
"#fff"
,
},
{
value
:
"app-dark-blue-theme"
,
text
:
"经典蓝"
,
background
:
"#5475ab"
,
color
:
"#fff"
,
},
{
value
:
"app-class-black-theme"
,
text
:
"极致黑"
,
background
:
"#282829"
,
color
:
"#FFF"
,
},
{
value
:
"app-light-green-theme"
,
text
:
"浅葱绿"
,
background
:
"#05D2C2"
,
color
:
"#FFF"
,
},
{
value
:
"app-peach-pink-theme"
,
text
:
"桃桃粉"
,
background
:
"#FD84A3"
,
color
:
"#FFF"
,
},
{
value
:
"app-star-purple-theme"
,
text
:
"星辰紫"
,
background
:
"#6937D9"
,
color
:
"#FFF"
,
},
{
value
:
"app-summer-yellow-theme"
,
text
:
"盛夏黄"
,
background
:
"#FEE45A"
,
color
:
"#000"
,
},
{
value
:
"app-vital-red-theme"
,
text
:
"元气红"
,
background
:
"#FE657A"
,
color
:
"#FFF"
,
},
],
};
src/ibiz-core/components/app-mob-select-theme/app-mob-select-theme.vue
浏览文件 @
ce7934bc
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
<
script
lang=
"ts"
>
<
script
lang=
"ts"
>
import
{
Vue
,
Component
,
Prop
,
Provide
,
Emit
,
Watch
,
}
from
"vue-property-decorator"
;
import
{
Vue
,
Component
,
Prop
,
Provide
,
Emit
,
Watch
,
}
from
"vue-property-decorator"
;
import
{
themeGroup
}
from
'./c
onfig'
import
{
appConfig
}
from
'@/config/appC
onfig'
@
Component
({
@
Component
({
i18n
:
{
i18n
:
{
messages
:
{
messages
:
{
...
@@ -52,7 +52,7 @@ export default class AppSelectTheme extends Vue {
...
@@ -52,7 +52,7 @@ export default class AppSelectTheme extends Vue {
}
else
if
(
localStorage
.
getItem
(
'theme-class'
))
{
}
else
if
(
localStorage
.
getItem
(
'theme-class'
))
{
return
localStorage
.
getItem
(
'theme-class'
);
return
localStorage
.
getItem
(
'theme-class'
);
}
else
{
}
else
{
return
'app-dark-blue-theme'
;
return
appConfig
.
defaultTheme
;
}
}
}
}
...
@@ -62,7 +62,7 @@ export default class AppSelectTheme extends Vue {
...
@@ -62,7 +62,7 @@ export default class AppSelectTheme extends Vue {
* @type {any[]}
* @type {any[]}
* @memberof AppSelectTheme
* @memberof AppSelectTheme
*/
*/
public
options
:
any
[]
=
themeGroup
;
public
options
:
any
[]
=
appConfig
.
themes
;
/**
/**
* 激活主题
* 激活主题
...
...
src/ibiz-core/components/app-mob-select-theme/config.ts
已删除
100644 → 0
浏览文件 @
77992ff9
export
const
themeGroup
=
[
{
value
:
"app-blue-theme"
,
text
:
"魅力紫"
,
background
:
"#705697"
,
color
:
"#fff"
},
{
value
:
"app-dark-blue-theme"
,
text
:
"经典蓝"
,
background
:
"#5475ab"
,
color
:
"#fff"
},
{
value
:
"app-class-black-theme"
,
text
:
"极致黑"
,
background
:
"#282829"
,
color
:
"#FFF"
},
{
value
:
"app-light-green-theme"
,
text
:
"浅葱绿"
,
background
:
"#05D2C2"
,
color
:
"#FFF"
},
{
value
:
"app-peach-pink-theme"
,
text
:
"桃桃粉"
,
background
:
"#FD84A3"
,
color
:
"#FFF"
},
{
value
:
"app-star-purple-theme"
,
text
:
"星辰紫"
,
background
:
"#6937D9"
,
color
:
"#FFF"
},
{
value
:
"app-summer-yellow-theme"
,
text
:
"盛夏黄"
,
background
:
"#FEE45A"
,
color
:
"#000"
},
{
value
:
"app-vital-red-theme"
,
text
:
"元气红"
,
background
:
"#FE657A"
,
color
:
"#FFF"
},
]
\ No newline at end of file
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录