AnalysisSystemForRadionucli.../src/views/spectrumAnalysis/components/SubOperators/GraphAssistance.vue

68 lines
1.0 KiB
Vue

<template>
<div class="graph-assistance">
<div class="graph-assistance-item" v-for="conf in config" :key="conf.title">
<span>{{ conf.label }}</span>
<a-switch v-model="conf.checked" @change="handleChange(conf)"></a-switch>
</div>
</div>
</template>
<script>
const config = [
{
label: 'Log10',
checked: true
},
{
label: 'Cursor',
checked: false
},
{
label: 'Lc',
checked: false
},
{
label: 'Baseline',
checked: false
},
{
label: 'Channel',
checked: false
},
{
label: 'Lines',
checked: false
},
{
label: 'S CAC',
checked: false
}
]
export default {
data() {
return {
config
}
},
methods: {
handleChange(conf) {
console.log('%c [ conf ]-47', 'font-size:13px; background:pink; color:#bf2c9f;', conf)
}
}
}
</script>
<style lang="less" scoped>
.graph-assistance {
display: flex;
width: 790px;
justify-content: space-between;
&-item {
span {
margin-right: 10px;
}
}
}
</style>