feat:修改明亮主题背景色

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

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

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

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

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

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

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

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

Loading…
Cancel
Save