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

43 lines
784 B
Vue
Raw Normal View History

2023-06-28 19:25:11 +08:00
<template>
<a-popover :placement="placement" overlayClassName="popover-with-icon" v-model="innerVisible">
2023-06-28 19:25:11 +08:00
<div class="pop-over-with-icon">
<span class="text">
<slot />
</span>
<img src="@/assets/images/global/select-down.png" alt="" />
</div>
<template slot="content">
<slot name="content" />
</template>
</a-popover>
</template>
<script>
export default {
props: {
placement: {
type: String,
default: 'bottom'
},
value: {
type: Boolean
}
},
data() {
return {
innerVisible: false
}
},
watch: {
value: {
handler(val) {
this.innerVisible = val
},
immediate: true
},
innerVisible(val) {
this.$emit('input', val)
2023-06-28 19:25:11 +08:00
}
}
}
</script>