forked from cerc-io/cosmos-explorer
Merge branch 'master' of https://github.com/ping-pub/explorer
This commit is contained in:
@@ -9,22 +9,22 @@ const props = defineProps(['series', 'labels']);
|
||||
const baseStore = useBaseStore();
|
||||
|
||||
const expenseRationChartConfig = computed(() => {
|
||||
const theme = baseStore.theme;
|
||||
getDonutChartConfig(theme, props?.labels);
|
||||
const theme = baseStore.theme;
|
||||
return getDonutChartConfig(theme, props?.labels);
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<ApexCharts
|
||||
type="donut"
|
||||
height="410"
|
||||
:options="expenseRationChartConfig"
|
||||
:series="series"
|
||||
/>
|
||||
<ApexCharts
|
||||
type="donut"
|
||||
height="410"
|
||||
:options="expenseRationChartConfig"
|
||||
:series="series"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
export default {
|
||||
name: 'DonetChart',
|
||||
name: 'DonetChart',
|
||||
};
|
||||
</script>
|
||||
|
||||
@@ -166,7 +166,7 @@ const themeColors = (theme: string) => {
|
||||
};
|
||||
};
|
||||
// 👉 Colors variables
|
||||
const colorVariables = (theme: string) => {
|
||||
export const colorVariables = (theme: string) => {
|
||||
if (theme === 'light') {
|
||||
return {
|
||||
themeSecondaryTextColor: 'rgba(76,78,100,0.6)',
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import 'ping-widget';
|
||||
// import 'ping-widget';
|
||||
import App from '@/App.vue';
|
||||
import i18n from '@/plugins/i18n';
|
||||
import '@/style.css';
|
||||
|
||||
Reference in New Issue
Block a user