mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
feat: 优化card组件
This commit is contained in:
parent
09b69c1a20
commit
ee8409abdc
|
|
@ -5,7 +5,7 @@
|
|||
effect="dark"
|
||||
placement="bottom"
|
||||
>
|
||||
<div ref="tagLabel" class="auto-tooltip">
|
||||
<div ref="tagLabel" :class="['auto-tooltip', className]" :style="style">
|
||||
<slot></slot>
|
||||
</div>
|
||||
</el-tooltip>
|
||||
|
|
@ -13,6 +13,7 @@
|
|||
<script setup lang="ts">
|
||||
import { ref, computed, onMounted, nextTick } from 'vue'
|
||||
defineOptions({ name: 'AutoTooltip' })
|
||||
const props = defineProps({ className: String, style: Object })
|
||||
const tagLabel = ref()
|
||||
const containerWeight = ref(0)
|
||||
const contentWeight = ref(0)
|
||||
|
|
|
|||
|
|
@ -78,6 +78,7 @@ function cardLeave() {
|
|||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
.card-footer {
|
||||
position: absolute;
|
||||
bottom: 8px;
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@
|
|||
<el-col
|
||||
:xs="24"
|
||||
:sm="12"
|
||||
:md="8"
|
||||
:md="12"
|
||||
:lg="8"
|
||||
:xl="6"
|
||||
v-for="(item, index) in paragraphDetail"
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@
|
|||
<el-col
|
||||
:xs="24"
|
||||
:sm="24"
|
||||
:md="12"
|
||||
:md="24"
|
||||
:lg="12"
|
||||
:xl="12"
|
||||
class="mb-16"
|
||||
|
|
|
|||
Loading…
Reference in New Issue