@ -0,0 +1,48 @@ |
||||
<template> |
||||
<el-card :class="{collapsed}"> |
||||
<div slot="header" class="clearfix"> |
||||
<slot name="header">{{header}}</slot> |
||||
<i class="el-icon-arrow-up collapse-card-icon" @click="collapse"/> |
||||
</div> |
||||
<slot/> |
||||
</el-card> |
||||
</template> |
||||
|
||||
<script> |
||||
export default { |
||||
name: "CollapseCard", |
||||
|
||||
props: { |
||||
header: String |
||||
}, |
||||
|
||||
data() { |
||||
return { |
||||
collapsed: false |
||||
} |
||||
}, |
||||
|
||||
methods: { |
||||
collapse() { |
||||
this.collapsed = !this.collapsed |
||||
} |
||||
} |
||||
} |
||||
</script> |
||||
|
||||
<style> |
||||
.collapse-card-icon { |
||||
float: right; |
||||
font-weight: bold; |
||||
transition: transform .3s; |
||||
cursor: pointer; |
||||
} |
||||
|
||||
.collapsed .collapse-card-icon { |
||||
transform: rotate(180deg); |
||||
} |
||||
|
||||
.el-card.collapsed > .el-card__body { |
||||
display: none; |
||||
} |
||||
</style> |
||||
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 379 B After Width: | Height: | Size: 379 B |
|
Before Width: | Height: | Size: 351 B After Width: | Height: | Size: 351 B |
|
Before Width: | Height: | Size: 284 B After Width: | Height: | Size: 284 B |
|
Before Width: | Height: | Size: 305 B After Width: | Height: | Size: 305 B |
|
Before Width: | Height: | Size: 490 B After Width: | Height: | Size: 490 B |
|
Before Width: | Height: | Size: 961 B After Width: | Height: | Size: 961 B |
@ -0,0 +1,13 @@ |
||||
import BottomTip from './BottomTip' |
||||
import Guide from './Guide' |
||||
import ImageViewer from './ImageViewer' |
||||
import PuzzleVerify from './PuzzleVerify' |
||||
import Signature from './SignautreBoard' |
||||
|
||||
export default function (Vue) { |
||||
Vue.prototype.$bottomTip = BottomTip |
||||
Vue.prototype.$guide = Guide |
||||
Vue.prototype.$image = ImageViewer |
||||
Vue.prototype.$puzzleVerify = PuzzleVerify |
||||
Vue.prototype.$signature = Signature |
||||
} |
||||