routes.js 5.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
import Loading from '../pages/loading.vue'
import Tip from '../pages/tip.vue'
import Popup from '../pages/popup.vue'
import Toast from '../pages/toast.vue'
A
update  
AmyFoxFN 已提交
10
import Input from '../pages/input.vue'
E
Ethan 已提交
11
import Textarea from '../pages/textarea.vue'
E
Ethan 已提交
12
import Rate from '../pages/rate.vue'
D
doly mood 已提交
13 14 15
import Form from '../pages/form/index.vue'
import FormDefault from '../pages/form/default.vue'
import FormCustom from '../pages/form/custom.vue'
16 17
import FormClassic from '../pages/form/classic.vue'
import FormFresh from '../pages/form/fresh.vue'
D
dolymood 已提交
18 19
import Picker from '../pages/picker.vue'
import CascadePicker from '../pages/cascade-picker.vue'
A
Amy 已提交
20
import SegmentPicker from '../pages/segment-picker.vue'
A
Amy 已提交
21
import DatePicker from '../pages/date-picker.vue'
D
dolymood 已提交
22
import TimePicker from '../pages/time-picker.vue'
A
Amy 已提交
23
import Select from '../pages/select.vue'
D
dolymood 已提交
24 25 26
import Dialog from '../pages/dialog.vue'
import ActionSheet from '../pages/action-sheet.vue'
import Scroll from '../pages/scroll.vue'
27
import IndexList from '../pages/index-list/index.vue'
D
dolymood 已提交
28 29
import IndexListDefault from '../pages/index-list/default.vue'
import IndexListCustom from '../pages/index-list/custom.vue'
30 31
import IndexListPullUpLoad from '../pages/index-list/pull-up-load.vue'
import IndexListPullDownRefresh from '../pages/index-list/pull-down-refresh.vue'
D
dolymood 已提交
32 33 34 35
import Upload from '../pages/upload/index.vue'
import UploadDefault from '../pages/upload/default.vue'
import UploadCompress from '../pages/upload/compress.vue'
import UploadCustom from '../pages/upload/custom.vue'
A
update  
AmyFoxFN 已提交
36
import Validator from '../pages/validator.vue'
H
HuangYi 已提交
37 38 39
import Swipe from '../pages/swipe/index.vue'
import SwipeDefault from '../pages/swipe/default.vue'
import SwipeCustom from '../pages/swipe/custom.vue'
D
doly mood 已提交
40 41 42
import Drawer from '../pages/drawer/index.vue'
import DrawerDefault from '../pages/drawer/default.vue'
import DrawerCustom from '../pages/drawer/custom.vue'
43 44 45
import Slide from '../pages/slide/index.vue'
import SlideVertical from '../pages/slide/vertical.vue'
import SlideHorizontal from '../pages/slide/horizontal.vue'
D
dolymood 已提交
46 47 48 49 50 51 52 53 54 55 56 57 58 59

const routes = [
  {
    path: '/button',
    component: Button
  },
  {
    path: '/checkbox',
    component: Checkbox
  },
  {
    path: '/checkbox-group',
    component: CheckboxGroup
  },
D
doly mood 已提交
60 61 62 63
  {
    path: '/radio',
    component: Radio
  },
A
update  
AmyFoxFN 已提交
64 65 66 67
  {
    path: '/input',
    component: Input
  },
E
Ethan 已提交
68 69 70 71
  {
    path: '/textarea',
    component: Textarea
  },
A
AmyFoxFN 已提交
72 73 74 75
  {
    path: '/switch',
    component: Switch
  },
D
doly mood 已提交
76 77 78 79 80 81 82 83 84 85 86
  {
    path: '/form',
    component: Form,
    children: [
      {
        path: 'default',
        component: FormDefault
      },
      {
        path: 'custom',
        component: FormCustom
87 88 89 90 91 92 93 94
      },
      {
        path: 'classic',
        component: FormClassic
      },
      {
        path: 'fresh',
        component: FormFresh
D
doly mood 已提交
95 96 97
      }
    ]
  },
D
dolymood 已提交
98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113
  {
    path: '/loading',
    component: Loading
  },
  {
    path: '/tip',
    component: Tip
  },
  {
    path: '/popup',
    component: Popup
  },
  {
    path: '/toast',
    component: Toast
  },
E
Ethan 已提交
114 115 116 117
  {
    path: '/rate',
    component: Rate
  },
D
dolymood 已提交
118 119 120 121 122 123 124 125
  {
    path: '/picker',
    component: Picker
  },
  {
    path: '/cascade-picker',
    component: CascadePicker
  },
A
Amy 已提交
126 127 128 129
  {
    path: '/segment-picker',
    component: SegmentPicker
  },
A
Amy 已提交
130 131 132 133
  {
    path: '/date-picker',
    component: DatePicker
  },
D
dolymood 已提交
134 135 136 137
  {
    path: '/time-picker',
    component: TimePicker
  },
A
Amy 已提交
138 139 140 141
  {
    path: '/select',
    component: Select
  },
D
dolymood 已提交
142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164
  {
    path: '/dialog',
    component: Dialog
  },
  {
    path: '/action-sheet',
    component: ActionSheet
  },
  {
    path: '/scroll',
    component: Scroll
  },
  {
    path: '/index-list',
    component: IndexList,
    children: [
      {
        path: 'default',
        component: IndexListDefault
      },
      {
        path: 'custom',
        component: IndexListCustom
165 166 167 168 169 170 171 172
      },
      {
        path: 'pull-up-load',
        component: IndexListPullUpLoad
      },
      {
        path: 'pull-down-refresh',
        component: IndexListPullDownRefresh
D
dolymood 已提交
173 174
      }
    ]
D
doly mood 已提交
175 176 177
  },
  {
    path: '/upload',
D
dolymood 已提交
178 179 180 181 182 183 184 185 186 187 188 189 190 191 192
    component: Upload,
    children: [
      {
        path: 'default',
        component: UploadDefault
      },
      {
        path: 'compress',
        component: UploadCompress
      },
      {
        path: 'custom',
        component: UploadCustom
      }
    ]
A
update  
AmyFoxFN 已提交
193 194 195 196
  },
  {
    path: '/validator',
    component: Validator
H
HuangYi 已提交
197 198 199 200 201 202 203 204 205 206 207 208 209 210
  },
  {
    path: '/swipe',
    component: Swipe,
    children: [
      {
        path: 'default',
        component: SwipeDefault
      },
      {
        path: 'custom',
        component: SwipeCustom
      }
    ]
211
  },
D
doly mood 已提交
212 213 214 215 216 217 218 219 220 221 222 223 224 225
  {
    path: '/drawer',
    component: Drawer,
    children: [
      {
        path: 'default',
        component: DrawerDefault
      },
      {
        path: 'custom',
        component: DrawerCustom
      }
    ]
  },
226 227 228 229 230 231 232 233 234 235 236 237 238
  {
    path: '/slide',
    component: Slide,
    children: [
      {
        path: 'vertical',
        component: SlideVertical
      },
      {
        path: 'horizontal',
        component: SlideHorizontal
      }
    ]
D
dolymood 已提交
239 240 241 242
  }
]

export default routes