mirror of
https://gitee.com/dromara/go-view.git
synced 2025-04-06 03:58:04 +08:00
feat: 新增样式按需引入
This commit is contained in:
parent
f06aafd14e
commit
a3b26ff247
@ -1,3 +0,0 @@
|
|||||||
import ChartSysSetting from './index.vue'
|
|
||||||
|
|
||||||
export { ChartSysSetting }
|
|
@ -1,3 +0,0 @@
|
|||||||
import ChartTheme from './index.vue'
|
|
||||||
|
|
||||||
export { ChartTheme }
|
|
@ -124,9 +124,7 @@ import { backgroundImageSize } from '@/settings/designSetting'
|
|||||||
import { useChartEditStoreStore } from '@/store/modules/chartEditStore/chartEditStore'
|
import { useChartEditStoreStore } from '@/store/modules/chartEditStore/chartEditStore'
|
||||||
import { EditCanvasConfigEnum } from '@/store/modules/chartEditStore/chartEditStore.d'
|
import { EditCanvasConfigEnum } from '@/store/modules/chartEditStore/chartEditStore.d'
|
||||||
import { UploadCustomRequestOptions } from 'naive-ui'
|
import { UploadCustomRequestOptions } from 'naive-ui'
|
||||||
import { ChartTheme } from './components/ChartTheme/index'
|
import { fileToUrl, loadAsyncComponent } from '@/utils'
|
||||||
import { ChartSysSetting } from './components/ChartSysSetting/index'
|
|
||||||
import { fileToUrl } from '@/utils'
|
|
||||||
import { icon } from '@/plugins'
|
import { icon } from '@/plugins'
|
||||||
|
|
||||||
const { ColorPaletteIcon } = icon.ionicons5
|
const { ColorPaletteIcon } = icon.ionicons5
|
||||||
@ -138,19 +136,22 @@ const canvasConfig = chartEditStoreStore.getEditCanvasConfig
|
|||||||
const uploadFileListRef = ref()
|
const uploadFileListRef = ref()
|
||||||
const switchSelectColorLoading = ref(false)
|
const switchSelectColorLoading = ref(false)
|
||||||
|
|
||||||
|
const ChartThemeColor = loadAsyncComponent(() => import('./components/ChartThemeColor/index.vue'))
|
||||||
|
const ChartThemSetting = loadAsyncComponent(() => import('./components/ChartThemSetting/index.vue'))
|
||||||
|
|
||||||
// 页面设置
|
// 页面设置
|
||||||
const globalTabList = [
|
const globalTabList = [
|
||||||
{
|
{
|
||||||
key: 'ChartTheme',
|
key: 'ChartTheme',
|
||||||
title: '主题颜色',
|
title: '主题颜色',
|
||||||
icon: ColorPaletteIcon,
|
icon: ColorPaletteIcon,
|
||||||
render: ChartTheme
|
render: ChartThemeColor
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'ChartSysSetting',
|
key: 'ChartSysSetting',
|
||||||
title: '全局图表',
|
title: '全局图表',
|
||||||
icon: ZAxisIcon,
|
icon: ZAxisIcon,
|
||||||
render: ChartSysSetting
|
render: ChartThemSetting
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user