Commit a2358eba authored by 高天阳's avatar 高天阳

面板头部点击样式

parent 083b09d7
...@@ -2,12 +2,11 @@ ...@@ -2,12 +2,11 @@
<el-row type="flex"> <el-row type="flex">
<el-col :span="options.panel_span" class="detail-content" :class="options.panel_class" style="margin:0 auto"> <el-col :span="options.panel_span" class="detail-content" :class="options.panel_class" style="margin:0 auto">
<el-card class="box-card" :style="options.panel_style"> <el-card class="box-card" :style="options.panel_style">
<div slot="header" class="clearfix" :class="options.title_class" @click="toggle()"> <div slot="header" class="clearfix" :class="[options.title_class, options.canCollapse ? 'pointer' : '']" @click="toggle()">
<slot name="title"></slot> <slot name="title"></slot>
</div> </div>
<div :style="options.content_height" :class="options.content_class" v-show="collapse"> <div :style="options.content_height" :class="options.content_class" v-show="collapse">
<slot name="content"></slot> <slot name="content"></slot>
<slot></slot>
</div> </div>
</el-card> </el-card>
</el-col> </el-col>
...@@ -62,4 +61,7 @@ ...@@ -62,4 +61,7 @@
.center{ .center{
text-align: center; text-align: center;
} }
.pointer{
cursor:pointer;
}
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment