提交一波,继续处理数据结构

This commit is contained in:
aixianling
2024-04-15 14:31:13 +08:00
parent e72f7c5e9f
commit fdfbaad6d8
9 changed files with 392 additions and 255 deletions

View File

@@ -4,6 +4,9 @@
<template v-if="$slots.title" #title>
<slot name="title"/>
</template>
<template v-if="$slots.right" #right>
<slot name="right"/>
</template>
<div :style="{padding}" class="content">
<slot/>
</div>

View File

@@ -1,8 +1,9 @@
<template>
<section class="border13" :class="'border13-' + theme">
<div class="border13-title">
<div class="border13-title" :class="{right:!!$scopedSlots.right}">
<!-- <img src="../asset/ic-badge.png" v-if="theme === '1'" /> -->
<h2>{{ title }}</h2>
<h2 class="fill" v-text="title"/>
<slot name="right"/>
</div>
<div class="slot">
<slot/>
@@ -44,6 +45,10 @@ export default {
height: 28px;
margin-right: 8px;
}
&.right {
padding-right: 0;
}
}
&.border13-1 .border13-title {