forked from seeksdream/relation-graph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGraphBottomPanel.vue
55 lines (53 loc) · 1.16 KB
/
GraphBottomPanel.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<template>
<div :style="{'margin-topd':(graphSetting.viewSize.height-height)+'px', height: height+'px', 'margin-top': -height+'px' }" class="c-rg-bottom-panel">
<slot name="bottomPanel" />
</div>
</template>
<script>
// import SeeksRGStore from './core4vue/SeeksRGStore'
// import { mapState } from 'vuex'
// var _parent = this.$parent
// console.log('GraphSettingPanel.vue:', _parent)
export default {
name: 'GraphBottomPanel',
props: {
graphSetting: {
mustUseProp: true,
default: () => { return {} },
type: Object
}
},
data() {
return {
height: 50,
search_text: ''
}
},
mounted() {
this.$nextTick(() => {
this.height = this.$slots['bottomPanel'][0].elm.offsetHeight
if (window.SeeksGraphDebug) console.log('SeeksGraph bootomPanel height:', this.height)
})
},
methods: {
}
}
</script>
<style scoped>
.c-rg-bottom-panel{
width:100%;
margin-left:0px;
font-size: 12px;
color: #1890ff;
padding:0px;
overflow: hidden;
border-radius: 0px;
position: absolute;
z-index: 99;
opacity: 1;
}
.c-fixedLayout{
position: fixed;
bottom:0px;
}
</style>