feat:【全局】融合下 common card 目录的功能

This commit is contained in:
YunaiV
2025-10-26 20:40:45 +08:00
parent bcf4fc102e
commit e139481973
7 changed files with 5 additions and 6 deletions

View File

@@ -1,4 +1,3 @@
// add by 芋艿:统计卡片,目前 mall 模块在使用
export { default as StatisticCard } from './statistic-card.vue';
export * from './types';

View File

@@ -59,7 +59,9 @@ withDefaults(defineProps<StatisticCardProps>(), {
{{ Math.abs(Number(percent ?? 0)).toFixed(2) }}%
<VbenIcon
:icon="
Number(percent) > 0 ? 'lucide:trending-up' : 'lucide:trending-down'
Number(percent) > 0
? 'lucide:trending-up'
: 'lucide:trending-down'
"
class="size-3"
/>
@@ -68,4 +70,3 @@ withDefaults(defineProps<StatisticCardProps>(), {
</CardContent>
</Card>
</template>

View File

@@ -14,4 +14,3 @@ export interface StatisticCardProps {
/** 环比标签文本 */
percentLabel?: string;
}

View File

@@ -11,8 +11,8 @@ export * from './json-viewer';
export * from './loading';
export * from './page';
export * from './resize';
export * from './statistic-card';
export * from './summary-card';
export * from './card/statistic-card';
export * from './card/summary-card';
export * from './tippy';
export * from './tree';
export * from '@vben-core/form-ui';