70 lines
1001 B
Vue
70 lines
1001 B
Vue
<!--
|
|
* @Author: zhp
|
|
* @Date: 2024-05-30 09:00:01
|
|
* @LastEditTime: 2024-07-24 10:31:52
|
|
* @LastEditors: zhp
|
|
* @Description:
|
|
-->
|
|
|
|
<template>
|
|
<div class="chart-container" :class="{ 'no-scroll': noScroll }">
|
|
<slot />
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: "ChartContainer",
|
|
components: {},
|
|
props: {
|
|
noScroll: {
|
|
type: Boolean,
|
|
default: true,
|
|
},
|
|
},
|
|
data() {
|
|
return {};
|
|
},
|
|
computed: {},
|
|
methods: {},
|
|
};
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
.chart-container {
|
|
height: 0;
|
|
flex: 1;
|
|
overflow-x: scroll;
|
|
}
|
|
|
|
.no-scroll::-webkit-scrollbar {
|
|
width: 0;
|
|
height: 0;
|
|
}
|
|
|
|
::-webkit-scrollbar {
|
|
width: 8px;
|
|
height: 8px;
|
|
}
|
|
|
|
::-webkit-scrollbar-button {
|
|
width: 0;
|
|
height: 0;
|
|
// width: 10px;
|
|
// height: 10px;
|
|
// background: #14305f;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: #14305f;
|
|
border: 0 none;
|
|
border-radius: 0;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: #004798;
|
|
border: 0 none;
|
|
border-radius: 6px;
|
|
}
|
|
</style>
|