feat:修改明亮主题背景色

main
liu.shiyi 2 years ago
parent 33e08eeb7a
commit 7dd6df1abd

@ -284,7 +284,7 @@ export default {
bg: '',
bgColor: '#151a26', //
lightBg: '',
lightBgColor: '#151a26',
lightBgColor: '#f5f7fa',
opacity: 100,
customTheme: 'dark',
themeJson: {},
@ -375,7 +375,9 @@ export default {
pageInfo.chartList = themeToSetting(pageInfo.chartList, theme)
this.changePageInfo(pageInfo)
pageInfo.chartList.forEach(chart => {
// if (chart.type === 'remoteComponent')
if (chart.type === 'remoteComponent') {
// this.$refs['remoteComponent' + chart.code]?.changeStyle(chart)
}
})
},
init () {

@ -262,7 +262,7 @@ export default {
w: this.type === 'component' ? 1024 : 1920,
h: this.type === 'component' ? 768 : 1080,
bgColor: '#151a26',
lightBgColor: '#151a26',
lightBgColor: '#f5f7fa',
opacity: 100,
customTheme: 'dark',
bg: null,

@ -365,7 +365,7 @@ export default {
w: this.resolutionRatio.w || '1920',
h: this.resolutionRatio.h || '1080',
bgColor: '#151a26',
lightBgColor: '#151a26',
lightBgColor: '#f5f7fa',
opacity: 100,
customTheme: 'dark'
},

@ -298,7 +298,7 @@ export default {
opacity: 100,
customTheme: 'dark',
bg: null,
lightBgColor: '#151a26',
lightBgColor: '#f5f7fa',
lightBg: null,
fitMode: 'auto'
})

@ -249,7 +249,7 @@ export default {
opacity: 100,
customTheme: 'auto',
bg: null,
lightBgColor: '#151a26',
lightBgColor: '#f5f7fa',
lightBg: null
})
if (this.dataForm.type === 'bigScreen') {

@ -55,7 +55,7 @@ export function handleResData (data) {
...data,
pageConfig: {
...data.pageConfig,
lightBgColor: data.pageConfig.lightBgColor || '#151a26'
lightBgColor: data.pageConfig.lightBgColor || '#f5f7fa'
}
}
} else {
@ -65,7 +65,7 @@ export function handleResData (data) {
w: 1920,
h: 1080,
bgColor: '#151a26', // 背景色
lightBgColor: '#151a26',
lightBgColor: '#f5f7fa',
lightBg: '',
bg: '', // 背景图
customTheme: 'dark',

@ -22,7 +22,7 @@ export const defaultData = {
h: 1080,
bgColor: '#151a26', // 背景色
bg: '', // 背景图
lightBgColor: '#151a26',
lightBgColor: '#f5f7fa',
lightBg: '',
opacity: 100,
customTheme: 'dark',

Loading…
Cancel
Save