Skip to content

Commit

Permalink
fix: 修复循环过深的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
timi137137 committed Dec 4, 2023
1 parent c650fb7 commit 6979424
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/pages/dashboard/base/components/TopPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<t-row :gutter="[16, 16]">
<t-col v-for="(item, index) in PANE_LIST" :key="item.title" :xs="6" :xl="3">
<t-card
:title="item.title"
:title="t(item.title)"
:bordered="false"
:class="{ 'dashboard-item': true, 'dashboard-item--main-color': index == 0 }"
>
Expand Down Expand Up @@ -77,25 +77,25 @@ const resizeTime = ref(1);
const PANE_LIST = [
{
title: t('pages.dashboardBase.topPanel.card1'),
title: 'pages.dashboardBase.topPanel.card1',
number: '¥ 28,425.00',
upTrend: '20.5%',
leftType: 'echarts-line',
},
{
title: t('pages.dashboardBase.topPanel.card2'),
title: 'pages.dashboardBase.topPanel.card2',
number: '¥ 768.00',
downTrend: '20.5%',
leftType: 'echarts-bar',
},
{
title: t('pages.dashboardBase.topPanel.card3'),
title: 'pages.dashboardBase.topPanel.card3',
number: '1126',
upTrend: '20.5%',
leftType: 'icon-usergroup',
},
{
title: t('pages.dashboardBase.topPanel.card4'),
title: 'pages.dashboardBase.topPanel.card4',
number: 527,
downTrend: '20.5%',
leftType: 'icon-file-paste',
Expand Down

0 comments on commit 6979424

Please sign in to comment.