mirror of
https://gitee.com/dromara/go-view.git
synced 2025-04-06 03:58:04 +08:00
fix: 修改 show 开关的问题
This commit is contained in:
parent
14010cce8f
commit
2690b06eff
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<n-divider style="margin: 10px 0;" />
|
<n-divider style="margin: 10px 0;" />
|
||||||
<n-collapse arrow-placement="right">
|
<n-collapse arrow-placement="right" :default-expanded-names="name" accordion>
|
||||||
<!-- 右侧 -->
|
<!-- 右侧 -->
|
||||||
<template #header-extra>
|
<template #header-extra>
|
||||||
<div @click="click">
|
<div @click="click">
|
||||||
@ -8,7 +8,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<n-collapse-item :title="name" name="1">
|
<n-collapse-item :title="name" :name="name">
|
||||||
<slot />
|
<slot />
|
||||||
</n-collapse-item>
|
</n-collapse-item>
|
||||||
</n-collapse>
|
</n-collapse>
|
||||||
@ -21,6 +21,9 @@ defineProps({
|
|||||||
required: true
|
required: true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// const name = new Date().getTime()
|
||||||
|
|
||||||
const click = (e:MouseEvent) => {
|
const click = (e:MouseEvent) => {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
e.stopPropagation()
|
e.stopPropagation()
|
||||||
|
@ -13,6 +13,7 @@ const option = echartOptionProfixHandle(
|
|||||||
show: true,
|
show: true,
|
||||||
trigger: 'axis',
|
trigger: 'axis',
|
||||||
axisPointer: {
|
axisPointer: {
|
||||||
|
show: true,
|
||||||
type: 'shadow'
|
type: 'shadow'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -12,6 +12,7 @@ const option = echartOptionProfixHandle(
|
|||||||
show: true,
|
show: true,
|
||||||
trigger: 'axis',
|
trigger: 'axis',
|
||||||
axisPointer: {
|
axisPointer: {
|
||||||
|
show: true,
|
||||||
type: 'shadow'
|
type: 'shadow'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -22,6 +22,7 @@ const option = echartOptionProfixHandle({
|
|||||||
radius: ['40%', '70%'],
|
radius: ['40%', '70%'],
|
||||||
avoidLabelOverlap: false,
|
avoidLabelOverlap: false,
|
||||||
itemStyle: {
|
itemStyle: {
|
||||||
|
show: true,
|
||||||
borderRadius: 10,
|
borderRadius: 10,
|
||||||
borderColor: '#fff',
|
borderColor: '#fff',
|
||||||
borderWidth: 2
|
borderWidth: 2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user