Files
dvcp_v2_webapp/components/layout/AiDvPlot/AiDvPlot.vue

53 lines
915 B
Vue
Raw Normal View History

2023-10-07 18:04:34 +08:00
<template>
<section class="AiDvPlot">
2023-10-08 11:14:00 +08:00
<ai-select class="plotPicker" v-model="current" :select-list="charts" @change="handleChangeChart"/>
2023-10-07 18:04:34 +08:00
<div ref="DvPlot"/>
</section>
</template>
<script>
export default {
name: "AiDvPlot",
props: {
options: {default: () => []}
},
data() {
return {
current: 0
}
},
2023-10-08 11:14:00 +08:00
computed: {
charts: v => v.options.map((e, id) => ({id, label: e.title})),
plot: v => v.options[v.current]
},
methods: {
handleChangeChart() {
}
},
2023-10-07 18:04:34 +08:00
}
</script>
<style scoped lang="scss">
.AiDvPlot {
position: relative;
height: 100%;
:deep(.plotPicker) {
position: absolute;
right: 12px;
top: -10px;
.el-select {
.el-input__inner {
background: #218ffd1a;
border: 1px solid #1F66AD;
color: #2FC5FF;
}
.el-input__suffix {
color: #2FC5FF !important;
}
}
}
}
</style>