提交一波,继续处理数据结构
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user