mind-map/web/src/pages/Edit/components/NavigatorToolbar.vue
2021-07-11 22:21:40 +08:00

58 lines
926 B
Vue

<template>
<div class="navigatorContainer">
<div class="item">
<Scale :mindMap="mindMap"></Scale>
</div>
<div class="item">
<Fullscreen :mindMap="mindMap"></Fullscreen>
</div>
</div>
</template>
<script>
import Scale from "./Scale";
import Fullscreen from "./Fullscreen";
/**
* @Author: 王林
* @Date: 2021-06-24 22:53:10
* @Desc: 导航器工具栏
*/
export default {
name: "NavigatorToolbar",
components: {
Scale,
Fullscreen,
},
props: {
mindMap: {
type: Object,
},
}
};
</script>
<style lang="less" scoped>
.navigatorContainer {
padding: 0 12px;
position: fixed;
right: 20px;
bottom: 20px;
background: hsla(0, 0%, 100%, 0.8);
border-radius: 5px;
opacity: 0.8;
height: 44px;
font-size: 12px;
display: flex;
align-items: center;
.item {
margin-right: 20px;
&:last-of-type {
margin-right: 0;
}
}
}
</style>