• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<template>
2  <example-list items="{{items}}" root="{{root}}"></example-list>
3</template>
4
5<script>
6  require('./example-list.we');
7  module.exports = {
8    data: {
9      root: 'examples',
10      items: [
11        // FORMAT:
12        // `name` key is the example filename without '.we'
13        // Support sub directory, e.g. 'new-fashion/index'
14
15        // common
16        {name: 'hello', title: 'Hello World'},
17        {name: 'syntax/index', title: 'More Syntax'},
18        {name: 'style/index', title: 'Common Style'},
19        {name: 'animation', title: 'Animation'},
20
21        // component
22        {name: 'component/text-demo', title: 'Text'},
23        {name: 'component/image-demo', title: 'Image'},
24        {name: 'component/input-demo', title: 'Input'},
25        {name: 'component/scroller-demo', title: 'Scroller'},
26        {name: 'component/list/list-basic', title: 'List (Basic)'},
27        {name: 'component/list/list-demo', title: 'List (Advanced)'},
28        {name: 'component/slider/index', title: 'Slider'},
29        {name: 'component/a-demo', title: 'A'},
30        {name: 'component/video-demo', title: 'Video'},
31        {name: 'component/countdown-demo', title: 'Countdown'},
32        {name: 'component/marquee-demo', title: 'Marquee'},
33        {name: 'component/web-demo', title: 'Web'},
34        {name: 'component/navigator-demo', title: 'Navigator'},
35        {name: 'component/tabbar/tabbar-demo', title: 'Tabbar'},
36        {name: 'component/process-bar-demo', title: 'ProcessBar'},
37
38        // module
39        {name: 'module/instance-api', title: 'Instance API'},
40        {name: 'module/modal', title: 'Modal'},
41        {name: 'module/stream-demo', title: 'Stream'},
42        {name: 'module/storage-demo',title:'Storage'},
43        // {name: 'module/clipboard', title: 'Clipboard'}, // 0.8 , developing
44
45        // showcase
46        {name: 'showcase/new-fashion/index', title: 'Activity'},
47        {name: 'showcase/calculator', title: 'Calculator'},
48        {name: 'showcase/minesweeper', title: 'Minesweeper'},
49        {name: 'showcase/ui', title: 'UI Gallery'},
50        {name: 'showcase/dropdown/dropdown-demo', title: 'Dropdown'}
51      ]
52    }
53  }
54</script>