From f3f5491b7629b4cc8e5d0fbd41eb69235de24ff7 Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Fri, 2 Aug 2019 14:03:19 +0300 Subject: [PATCH] Add keys --- src/views/tree/TreeTemplatingDemo.vue | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/views/tree/TreeTemplatingDemo.vue b/src/views/tree/TreeTemplatingDemo.vue index 393dd219d..bdde0fbe6 100644 --- a/src/views/tree/TreeTemplatingDemo.vue +++ b/src/views/tree/TreeTemplatingDemo.vue @@ -35,20 +35,20 @@ export default { key: '0', label: 'Introduction', children: [ - {label: 'What is Vue.js?', data:'https://vuejs.org/v2/guide/#What-is-Vue-js', type: 'url'}, - {label: 'Getting Started', data: 'https://vuejs.org/v2/guide/#Getting-Started', type: 'url'}, - {label: 'Declarative Rendering', data:'https://vuejs.org/v2/guide/#Declarative-Rendering', type: 'url'}, - {label: 'Conditionals and Loops', data: 'https://vuejs.org/v2/guide/#Conditionals-and-Loops', type: 'url'} + {key: '0-0', label: 'What is Vue.js?', data:'https://vuejs.org/v2/guide/#What-is-Vue-js', type: 'url'}, + {key: '0-1', label: 'Getting Started', data: 'https://vuejs.org/v2/guide/#Getting-Started', type: 'url'}, + {key: '0-2', label: 'Declarative Rendering', data:'https://vuejs.org/v2/guide/#Declarative-Rendering', type: 'url'}, + {key: '0-3', label: 'Conditionals and Loops', data: 'https://vuejs.org/v2/guide/#Conditionals-and-Loops', type: 'url'} ] }, { key: '1', label: 'Components In-Depth', children: [ - {label: 'Component Registration', data: 'https://vuejs.org/v2/guide/components-registration.html', type: 'url'}, - {label: 'Props', data: 'https://vuejs.org/v2/guide/components-props.html', type: 'url'}, - {label: 'Custom Events', data: 'https://vuejs.org/v2/guide/components-custom-events.html', type: 'url'}, - {label: 'Slots', data: 'https://vuejs.org/v2/guide/components-slots.html', type: 'url'} + {key: '1-0', label: 'Component Registration', data: 'https://vuejs.org/v2/guide/components-registration.html', type: 'url'}, + {key: '1-1', llabel: 'Props', data: 'https://vuejs.org/v2/guide/components-props.html', type: 'url'}, + {key: '1-2', llabel: 'Custom Events', data: 'https://vuejs.org/v2/guide/components-custom-events.html', type: 'url'}, + {key: '1-3', llabel: 'Slots', data: 'https://vuejs.org/v2/guide/components-slots.html', type: 'url'} ] } ]