小调整。

pull/407/head
王良 2024-12-02 23:31:10 +08:00
parent 6f9a024e88
commit 345008bbce
1 changed files with 4 additions and 4 deletions

View File

@ -15,11 +15,11 @@ export default {
<template> <template>
<ul> <ul>
<li v-for="node in treeData" :key="node.title"> <li v-for="node in treeData" :key="node.title">
<span v-if="node.url && (node.url.startsWith('http://') || node.url.startsWith('https://'))" :class="node.class" :style="node.style"> <span v-if="node.url && (node.url.startsWith('http://') || node.url.startsWith('https://'))">
<a :title="node.tip || node.title" @click="openExternal(node.url)">{{ node.title }}</a> <a :title="node.tip || node.title" :class="node.class" :style="node.style" @click="openExternal(node.url)">{{ node.title }}</a>
</span> </span>
<span v-else :class="node.class" :style="node.style"> <span v-else>
<label :title="node.tip || node.title">{{ node.title }}</label> <label :title="node.tip || node.title" :class="node.class" :style="node.style">{{ node.title }}</label>
</span> </span>
<tree-node v-if="node.children && node.children.length > 0" :tree-data="node.children" class="child-node" /> <tree-node v-if="node.children && node.children.length > 0" :tree-data="node.children" class="child-node" />
</li> </li>