|
|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div class="card">
|
|
|
- <div class="card-head">
|
|
|
+ <div class="card-head" v-if="showHead">
|
|
|
<div class="card-head_label"> {{ title }}</div>
|
|
|
<div class="flex card-head_value">
|
|
|
<slot name="headRight" />
|
|
|
@@ -63,6 +63,8 @@
|
|
|
id?: string;
|
|
|
// 标题
|
|
|
title: string;
|
|
|
+
|
|
|
+ showHead: boolean;
|
|
|
// icon
|
|
|
icon?: string | unknown;
|
|
|
iconType?: string;
|
|
|
@@ -101,6 +103,7 @@
|
|
|
}
|
|
|
const props = withDefaults(defineProps<Props>(), {
|
|
|
title: '标题',
|
|
|
+ showHead: true,
|
|
|
wrapSpan: 6,
|
|
|
type: '',
|
|
|
data: () => [],
|