mirror of
https://gitee.com/dromara/go-view.git
synced 2024-12-02 11:48:36 +08:00
fix: 修改 show 开关的问题
This commit is contained in:
parent
7918918a69
commit
e874ca1e8c
@ -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()
|
||||
|
@ -13,6 +13,7 @@ const option = echartOptionProfixHandle(
|
||||
show: true,
|
||||
trigger: 'axis',
|
||||
axisPointer: {
|
||||
show: true,
|
||||
type: 'shadow'
|
||||
}
|
||||
},
|
||||
|
@ -12,6 +12,7 @@ const option = echartOptionProfixHandle(
|
||||
show: true,
|
||||
trigger: 'axis',
|
||||
axisPointer: {
|
||||
show: true,
|
||||
type: 'shadow'
|
||||
}
|
||||
},
|
||||
|
@ -22,6 +22,7 @@ const option = echartOptionProfixHandle({
|
||||
radius: ['40%', '70%'],
|
||||
avoidLabelOverlap: false,
|
||||
itemStyle: {
|
||||
show: true,
|
||||
borderRadius: 10,
|
||||
borderColor: '#fff',
|
||||
borderWidth: 2
|
||||
|
Loading…
Reference in New Issue
Block a user