fix: 修改 show 开关的问题

This commit is contained in:
MTrun 2022-02-24 17:55:29 +08:00
parent 7918918a69
commit e874ca1e8c
4 changed files with 8 additions and 2 deletions

View File

@ -1,6 +1,6 @@
<template>
<n-divider style="margin: 10px 0;" />
<n-collapse arrow-placement="right">
<n-collapse arrow-placement="right" :default-expanded-names="name" accordion>
<!-- 右侧 -->
<template #header-extra>
<div @click="click">
@ -8,7 +8,7 @@
</div>
</template>
<n-collapse-item :title="name" name="1">
<n-collapse-item :title="name" :name="name">
<slot />
</n-collapse-item>
</n-collapse>
@ -21,6 +21,9 @@ defineProps({
required: true
}
})
// const name = new Date().getTime()
const click = (e:MouseEvent) => {
e.preventDefault()
e.stopPropagation()

View File

@ -13,6 +13,7 @@ const option = echartOptionProfixHandle(
show: true,
trigger: 'axis',
axisPointer: {
show: true,
type: 'shadow'
}
},

View File

@ -12,6 +12,7 @@ const option = echartOptionProfixHandle(
show: true,
trigger: 'axis',
axisPointer: {
show: true,
type: 'shadow'
}
},

View File

@ -22,6 +22,7 @@ const option = echartOptionProfixHandle({
radius: ['40%', '70%'],
avoidLabelOverlap: false,
itemStyle: {
show: true,
borderRadius: 10,
borderColor: '#fff',
borderWidth: 2