小调整。
parent
6f9a024e88
commit
345008bbce
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue