Skip to content

Commit

Permalink
fix: 修复循环过深的问题 (#650)
Browse files Browse the repository at this point in the history
* fix: 修复循环过深的问题

* fix: 修复依赖更新导致的类型错误
  • Loading branch information
timi137137 authored Dec 5, 2023
1 parent 3fbee5a commit 6a53559
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"stylelint": "~15.11.0",
"stylelint-config-standard": "^34.0.0",
"stylelint-order": "~6.0.3",
"typescript": "~5.2.2",
"typescript": "~5.3.2",
"vite": "^4.5.0",
"vite-plugin-mock": "^3.0.0",
"vite-svg-loader": "^4.0.0",
Expand Down
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
2 changes: 1 addition & 1 deletion src/utils/route/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ LayoutMap.set('IFRAME', IFRAME);
let dynamicViewsModules: Record<string, () => Promise<Recordable>>;

// 动态从包内引入单个Icon
async function getMenuIcon(iconName: string) {
async function getMenuIcon(iconName: string): Promise<string> {
const RenderIcon = iconsPath[`../../../node_modules/tdesign-icons-vue-next/esm/components/${iconName}.js`];

const Icon = await RenderIcon();
Expand Down

0 comments on commit 6a53559

Please sign in to comment.