2018-06-05 06:36:21 -06:00
|
|
|
<template>
|
|
|
|
<div class="dnpfarvgbnfmyzbdquhhzyxcmstpdqzs">
|
|
|
|
<header>
|
2018-06-05 07:54:03 -06:00
|
|
|
<slot name="header"></slot>
|
2018-06-05 06:36:21 -06:00
|
|
|
</header>
|
|
|
|
<div ref="body">
|
2018-06-05 07:54:03 -06:00
|
|
|
<slot></slot>
|
2018-06-05 06:36:21 -06:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue';
|
|
|
|
import XTl from './deck.tl.vue';
|
|
|
|
|
|
|
|
export default Vue.extend({
|
|
|
|
components: {
|
|
|
|
XTl
|
|
|
|
},
|
2018-06-05 07:54:03 -06:00
|
|
|
provide() {
|
|
|
|
return {
|
|
|
|
getColumn() {
|
|
|
|
return this;
|
|
|
|
},
|
|
|
|
getScrollContainer() {
|
|
|
|
return this.$refs.body;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
},
|
2018-06-05 06:36:21 -06:00
|
|
|
mounted() {
|
|
|
|
this.$nextTick(() => {
|
2018-06-05 07:54:03 -06:00
|
|
|
this.$emit('mounted');
|
|
|
|
|
|
|
|
setInterval(() => {
|
|
|
|
this.$emit('mounted');
|
|
|
|
}, 100);
|
2018-06-05 06:36:21 -06:00
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="stylus" scoped>
|
|
|
|
@import '~const.styl'
|
|
|
|
|
|
|
|
root(isDark)
|
|
|
|
flex 1
|
2018-06-05 06:44:02 -06:00
|
|
|
min-width 330px
|
2018-06-05 07:54:03 -06:00
|
|
|
max-width 330px
|
2018-06-05 06:36:21 -06:00
|
|
|
height 100%
|
|
|
|
margin-right 16px
|
|
|
|
background isDark ? #282C37 : #fff
|
|
|
|
border-radius 6px
|
|
|
|
box-shadow 0 2px 16px rgba(#000, 0.1)
|
|
|
|
overflow hidden
|
|
|
|
|
|
|
|
> header
|
|
|
|
z-index 1
|
2018-06-05 07:54:03 -06:00
|
|
|
line-height 42px
|
2018-06-05 06:36:21 -06:00
|
|
|
padding 0 16px
|
|
|
|
color isDark ? #e3e5e8 : #888
|
|
|
|
background isDark ? #313543 : #fff
|
|
|
|
box-shadow 0 1px rgba(#000, 0.15)
|
|
|
|
|
|
|
|
> div
|
2018-06-05 07:54:03 -06:00
|
|
|
height calc(100% - 42px)
|
2018-06-05 06:36:21 -06:00
|
|
|
overflow auto
|
2018-06-05 06:44:02 -06:00
|
|
|
overflow-x hidden
|
2018-06-05 06:36:21 -06:00
|
|
|
|
|
|
|
.dnpfarvgbnfmyzbdquhhzyxcmstpdqzs[data-darkmode]
|
|
|
|
root(true)
|
|
|
|
|
|
|
|
.dnpfarvgbnfmyzbdquhhzyxcmstpdqzs:not([data-darkmode])
|
|
|
|
root(false)
|
|
|
|
|
|
|
|
</style>
|