add ThemePicker to setting

This commit is contained in:
Pan
2019-03-19 17:46:56 +08:00
parent 6c6f03f664
commit 27322ac4d3
4 changed files with 49 additions and 55 deletions

View File

@@ -2,9 +2,7 @@
<div ref="rightPanel" :class="{show:show}" class="rightPanel-container">
<div class="rightPanel-background" />
<div class="rightPanel">
<div class="handle-button" :style="{'top':buttonTop+'px'}" type="primary" circle @click="show=!show">
<i :class="show?'el-icon-close':'el-icon-setting'" />
</div>
<el-button class="handle-button" :style="{'top':buttonTop+'px'}" type="primary" circle :icon="show?'el-icon-close':'el-icon-setting'" @click="show=!show" />
<div class="rightPanel-items">
<slot />
</div>
@@ -121,20 +119,12 @@ export default {
.handle-button {
position: absolute;
left: -48px;
border-radius: 4px 0 0 4px !important;
border-radius: 6px 0 0 6px !important;
width: 48px;
height: 48px;
background: #1890ff;
cursor: pointer;
pointer-events: auto;
z-index: 0;
font-size: 24px;
text-align: center;
color: #fff;
line-height: 48px;
i {
font-size: 24px;
line-height: 48px;
}
}
</style>