routes.js 2.1 KB
Newer Older
D
dolymood 已提交
1 2 3
import Button from '../pages/button.vue'
import Checkbox from '../pages/checkbox.vue'
import CheckboxGroup from '../pages/checkbox-group.vue'
D
doly mood 已提交
4
import Radio from '../pages/radio.vue'
A
AmyFoxFN 已提交
5
import Switch from '../pages/switch.vue'
D
dolymood 已提交
6 7 8 9 10 11 12 13 14 15 16 17 18 19
import Loading from '../pages/loading.vue'
import Tip from '../pages/tip.vue'
import Popup from '../pages/popup.vue'
import Toast from '../pages/toast.vue'
import Picker from '../pages/picker.vue'
import CascadePicker from '../pages/cascade-picker.vue'
import TimePicker from '../pages/time-picker.vue'
import Dialog from '../pages/dialog.vue'
import ActionSheet from '../pages/action-sheet.vue'
import Scroll from '../pages/scroll.vue'
import Slide from '../pages/slide.vue'
import IndexList from '../pages/index-list/index-list.vue'
import IndexListDefault from '../pages/index-list/default.vue'
import IndexListCustom from '../pages/index-list/custom.vue'
D
doly mood 已提交
20
import Upload from '../pages/upload.vue'
D
dolymood 已提交
21 22 23 24 25 26 27 28 29 30 31 32 33 34

const routes = [
  {
    path: '/button',
    component: Button
  },
  {
    path: '/checkbox',
    component: Checkbox
  },
  {
    path: '/checkbox-group',
    component: CheckboxGroup
  },
D
doly mood 已提交
35 36 37 38
  {
    path: '/radio',
    component: Radio
  },
A
AmyFoxFN 已提交
39 40 41 42
  {
    path: '/switch',
    component: Switch
  },
D
dolymood 已提交
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
  {
    path: '/loading',
    component: Loading
  },
  {
    path: '/tip',
    component: Tip
  },
  {
    path: '/popup',
    component: Popup
  },
  {
    path: '/toast',
    component: Toast
  },
  {
    path: '/picker',
    component: Picker
  },
  {
    path: '/cascade-picker',
    component: CascadePicker
  },
  {
    path: '/time-picker',
    component: TimePicker
  },
  {
    path: '/dialog',
    component: Dialog
  },
  {
    path: '/action-sheet',
    component: ActionSheet
  },
  {
    path: '/scroll',
    component: Scroll
  },
  {
    path: '/slide',
    component: Slide
  },
  {
    path: '/index-list',
    component: IndexList,
    children: [
      {
        path: 'default',
        component: IndexListDefault
      },
      {
        path: 'custom',
        component: IndexListCustom
      }
    ]
D
doly mood 已提交
100 101 102 103
  },
  {
    path: '/upload',
    component: Upload
D
dolymood 已提交
104 105 106 107
  }
]

export default routes