Skip to content

Commit

Permalink
feature: 帮助页面数据,添加tip属性,鼠标移上去可以查看。
Browse files Browse the repository at this point in the history
  • Loading branch information
wangliang181230 committed Dec 2, 2024
1 parent 2455224 commit b905d50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/gui/src/view/components/tree-node.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ export default {
<template>
<ul>
<li v-for="node in treeData" :key="node.title">
<span v-if="node.url && (node.url.startsWith('http://') || node.url.startsWith('https://'))" :title="node.title">
<span v-if="node.url && (node.url.startsWith('http://') || node.url.startsWith('https://'))" :title="node.tip || node.title">
<a @click="openExternal(node.url)">{{ node.title }}</a>
</span>
<span v-else :title="node.title">{{ node.title }}</span>
<span v-else :title="node.tip || node.title">{{ node.title }}</span>
<tree-node v-if="node.children && node.children.length > 0" :tree-data="node.children" class="child-node" />
</li>
</ul>
Expand Down

0 comments on commit b905d50

Please sign in to comment.