mirror of
https://gitee.com/dromara/go-view.git
synced 2025-04-06 03:58:04 +08:00
feat: 修改切换主题的UI
This commit is contained in:
parent
b3d9005f7d
commit
844b95987e
@ -1,10 +1,12 @@
|
|||||||
<template>
|
<template>
|
||||||
<n-flex vertical>
|
<n-grid :x-gap="8" :y-gap="8" :cols="2">
|
||||||
<n-card class="theme-item" v-for="item in list" :key="item.value" size="small" @click="selectThemeHandle(item)">
|
<n-gi v-for="item in list" :key="item.value">
|
||||||
|
<n-card class="theme-item" size="small" @click="selectThemeHandle(item)">
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</n-card>
|
</n-card>
|
||||||
</n-flex>
|
</n-gi>
|
||||||
行业模板
|
</n-grid>
|
||||||
|
<div class="go-my-4">行业模板</div>
|
||||||
<n-grid :x-gap="8" :y-gap="8" :cols="2">
|
<n-grid :x-gap="8" :y-gap="8" :cols="2">
|
||||||
<n-gi v-for="item in industryList" :key="item.value">
|
<n-gi v-for="item in industryList" :key="item.value">
|
||||||
<n-card class="theme-item-industry" size="small" @click="selectThemeHandle(item)">
|
<n-card class="theme-item-industry" size="small" @click="selectThemeHandle(item)">
|
||||||
@ -28,17 +30,7 @@ const list = ref<
|
|||||||
}>
|
}>
|
||||||
>([
|
>([
|
||||||
{
|
{
|
||||||
name: '明亮',
|
name: '火山蓝(默认)',
|
||||||
value: 'light',
|
|
||||||
colors: []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '暗黑',
|
|
||||||
value: 'dark',
|
|
||||||
colors: []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '火山蓝',
|
|
||||||
value: 'vScreenVolcanoBlue',
|
value: 'vScreenVolcanoBlue',
|
||||||
colors: []
|
colors: []
|
||||||
},
|
},
|
||||||
@ -97,6 +89,16 @@ const industryList = ref<
|
|||||||
colors: string[]
|
colors: string[]
|
||||||
}>
|
}>
|
||||||
>([
|
>([
|
||||||
|
{
|
||||||
|
name: '明亮(适用白背景)',
|
||||||
|
value: 'light',
|
||||||
|
colors: []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '暗黑(适用黑背景)',
|
||||||
|
value: 'dark',
|
||||||
|
colors: []
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: '亮-金融行业',
|
name: '亮-金融行业',
|
||||||
value: 'veODesignLightFinance',
|
value: 'veODesignLightFinance',
|
||||||
@ -175,9 +177,8 @@ const selectThemeHandle = (item: { name: string; value: keyof typeof themeMap; c
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.theme-item {
|
.theme-item,
|
||||||
|
.theme-item-industry {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
.theme-item-industry {
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
@ -167,13 +167,13 @@ const selectColorOptions = [
|
|||||||
const globalTabList = [
|
const globalTabList = [
|
||||||
{
|
{
|
||||||
key: 'ChartTheme',
|
key: 'ChartTheme',
|
||||||
title: '默认主题颜色',
|
title: '默认主题',
|
||||||
icon: ColorPaletteIcon,
|
icon: ColorPaletteIcon,
|
||||||
render: ChartThemeColor
|
render: ChartThemeColor
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'VChartTheme',
|
key: 'VChartTheme',
|
||||||
title: 'VChart主题颜色',
|
title: 'VChart主题',
|
||||||
icon: ColorPaletteIcon,
|
icon: ColorPaletteIcon,
|
||||||
render: VChartThemeColor
|
render: VChartThemeColor
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user