feat(@vben/web-antd): 新增 CardTitle组件并优化 TimeSummaryChart
- 新增 CardTitle 组件用于统一卡片标题样式 - 在 TimeSummaryChart 中使用 CardTitle 组件替代原生标题 - 调整 EchartsUI 组件的 height 属性单位
This commit is contained in:
@@ -9,6 +9,8 @@ import { EchartsUI, useEcharts } from '@vben/plugins/echarts';
|
||||
|
||||
import { Card } from 'ant-design-vue';
|
||||
|
||||
import { CardTitle } from '#/components/card';
|
||||
|
||||
interface Props {
|
||||
title: string;
|
||||
value?: Array<{ price: number; time: string }>;
|
||||
@@ -112,9 +114,9 @@ watch(
|
||||
<template>
|
||||
<Card>
|
||||
<template #title>
|
||||
{{ title }}
|
||||
<CardTitle :title="title" />
|
||||
</template>
|
||||
<!-- 折线图 -->
|
||||
<EchartsUI ref="chartRef" :height="300" />
|
||||
<EchartsUI ref="chartRef" />
|
||||
</Card>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user