Blame view

examples/routers/tree.vue 1.41 KB
89f2ba8b   梁灏   init Tree component
1
  <template>
467e2cf9   梁灏   Tree add check-di...
2
      <Tree :data="data2" check-directly show-checkbox></Tree>
89f2ba8b   梁灏   init Tree component
3
4
5
  </template>
  <script>
      export default {
e6c0b158   梁灏   update
6
          data () {
e81207a2   梁灏   update Tree
7
              return {
467e2cf9   梁灏   Tree add check-di...
8
                  data2: [
75c32d5f   梁灏   rebuild Tree
9
                      {
174836c4   梁灏   update Tree Rende...
10
                          title: 'parent 1',
b64204fd   梁灏   update Tree demo
11
                          expand: true,
69a10b78   梁灏   fixed #787
12
13
                          children: [
                              {
b64204fd   梁灏   update Tree demo
14
15
16
17
                                  title: 'parent 1-1',
                                  expand: true,
                                  children: [
                                      {
af7d72b4   梁灏   update Tree selected
18
                                          title: 'leaf 1-1-1'
b64204fd   梁灏   update Tree demo
19
20
                                      },
                                      {
af7d72b4   梁灏   update Tree selected
21
                                          title: 'leaf 1-1-2'
b64204fd   梁灏   update Tree demo
22
23
                                      }
                                  ]
69a10b78   梁灏   fixed #787
24
25
                              },
                              {
b64204fd   梁灏   update Tree demo
26
                                  title: 'parent 1-2',
9b24f1ab   梁灏   Tree add Render f...
27
                                  expand: true,
6ed0cd73   梁灏   update Tree demo
28
29
                                  children: [
                                      {
af7d72b4   梁灏   update Tree selected
30
                                          title: 'leaf 1-2-1'
b64204fd   梁灏   update Tree demo
31
32
                                      },
                                      {
af7d72b4   梁灏   update Tree selected
33
                                          title: 'leaf 1-2-1'
6ed0cd73   梁灏   update Tree demo
34
35
                                      }
                                  ]
69a10b78   梁灏   fixed #787
36
37
                              }
                          ]
c8157442   梁灏   fixed #499
38
                      }
af7d72b4   梁灏   update Tree selected
39
                  ]
6ed0cd73   梁灏   update Tree demo
40
              }
e81207a2   梁灏   update Tree
41
          }
b64204fd   梁灏   update Tree demo
42
      }
af7d72b4   梁灏   update Tree selected
43
  </script>