diff --git a/front/src/views/instructionManual/components/abilityDocTree.vue b/front/src/views/instructionManual/components/abilityDocTree.vue index 45b5b671..9bd66da0 100644 --- a/front/src/views/instructionManual/components/abilityDocTree.vue +++ b/front/src/views/instructionManual/components/abilityDocTree.vue @@ -2,7 +2,7 @@
-
{{ item.title }} @@ -28,10 +28,6 @@ const props = defineProps({ type: Array, default: () => [] }, - selectName: { - type: String, - default: '' - }, level: { type: Number, default: 1 @@ -59,15 +55,13 @@ const judgeLeaf = (item) => { } const showChildren = (item) => { - if (!item.children) { + if (!(item.children && item.children.length > 0)) { if (newClickData.value.title !== '') { handleTreeItem(item) } else { handleTreeItem({ title: '' }) } - item.isSelect = !item.isSelect; } - if (item.children && item.children.length > 0) { item.show = !item.show; } @@ -113,33 +107,31 @@ const handleTreeItem = (item) => { &:hover { color: #0058e1; + cursor: pointer; } } -.normal { - color: #333; -} - .parent { margin-bottom: 10px; background: rgba(0, 135, 225, 0.1); color: #333; - // margin-bottom: 10px; - &:hover { color: #fff; background: #0058e1; + cursor: pointer; } } .leaf { font-size: 14px; color: #555; + cursor: pointer; } .select { color: #0058e1; font-weight: 600; + cursor: pointer; } diff --git a/front/src/views/instructionManual/index.vue b/front/src/views/instructionManual/index.vue index a26dd1f7..51c099b2 100644 --- a/front/src/views/instructionManual/index.vue +++ b/front/src/views/instructionManual/index.vue @@ -2,21 +2,27 @@