mirror of
https://github.com/filegator/filegator.git
synced 2025-08-28 19:29:56 +02:00
lint
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
<template>
|
||||
<li class="node-tree">
|
||||
<b-button :type="button_type" size="is-small" @click="toggleButton(node)">
|
||||
<span class="icon"><i :class="icon"></i></span>
|
||||
</b-button>
|
||||
<a @click="$emit('selected', node)">{{ node.name }}</a>
|
||||
<b-button :type="button_type" size="is-small" @click="toggleButton(node)">
|
||||
<span class="icon"><i :class="icon" /></span>
|
||||
</b-button>
|
||||
|
||||
<!-- eslint-disable-next-line -->
|
||||
<a @click="$emit('selected', node)">{{ node.name }}</a>
|
||||
|
||||
<ul v-if="node.children && node.children.length">
|
||||
<TreeNode v-for="(child, index) in node.children" :key="index" :node="child" @selected="$emit('selected', $event)" />
|
||||
@@ -18,7 +20,10 @@ import _ from 'lodash'
|
||||
export default {
|
||||
name: "TreeNode",
|
||||
props: {
|
||||
node: Object
|
||||
node: {
|
||||
type: Object,
|
||||
required: true
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
Reference in New Issue
Block a user