feature: 帮助页面数据,添加tip属性,鼠标移上去可以查看。

pull/407/head
王良 2024-12-02 11:46:16 +08:00
parent 2455224005
commit b905d50c39
1 changed files with 2 additions and 2 deletions

View File

@ -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>