routes.js 8.5 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
import Dialog from '../pages/dialog.vue'
import ActionSheet from '../pages/action-sheet.vue'
T
tank0317 已提交
26 27 28 29
import Scroll from '../pages/scroll/index.vue'
import ScrollDefault from '../pages/scroll/default.vue'
import ScrollConfig from '../pages/scroll/config.vue'
import ScrollJd from '../pages/scroll/jd.vue'
T
tank0317 已提交
30
import ScrollHorizontal from '../pages/scroll/horizontal.vue'
T
tank0317 已提交
31
import ScrollToutiao from '../pages/scroll/toutiao.vue'
T
tank0317 已提交
32 33 34
import VScrolls from '../pages/scroll/vertical-scrolls.vue'
import HScrolls from '../pages/scroll/horizontal-scrolls.vue'
import TextareaInScroll from '../pages/scroll/textarea.vue'
35
import IndexList from '../pages/index-list/index.vue'
D
dolymood 已提交
36 37
import IndexListDefault from '../pages/index-list/default.vue'
import IndexListCustom from '../pages/index-list/custom.vue'
38 39
import IndexListPullUpLoad from '../pages/index-list/pull-up-load.vue'
import IndexListPullDownRefresh from '../pages/index-list/pull-down-refresh.vue'
D
dolymood 已提交
40 41 42 43
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 已提交
44
import Validator from '../pages/validator.vue'
H
HuangYi 已提交
45 46 47
import Swipe from '../pages/swipe/index.vue'
import SwipeDefault from '../pages/swipe/default.vue'
import SwipeCustom from '../pages/swipe/custom.vue'
D
doly mood 已提交
48 49 50
import Drawer from '../pages/drawer/index.vue'
import DrawerDefault from '../pages/drawer/default.vue'
import DrawerCustom from '../pages/drawer/custom.vue'
51 52 53
import Slide from '../pages/slide/index.vue'
import SlideVertical from '../pages/slide/vertical.vue'
import SlideHorizontal from '../pages/slide/horizontal.vue'
A
Amy 已提交
54
import Toolbar from '../pages/toolbar.vue'
55 56 57 58 59 60 61 62
import Sticky from '../pages/sticky/index.vue'
import StickyScroll from '../pages/sticky/scroll.vue'
import StickyNative from '../pages/sticky/native.vue'
import StickyWechat from '../pages/sticky/wechat.vue'
import ScrollNavBar from '../pages/scroll-nav-bar.vue'
import ScrollNav from '../pages/scroll-nav/index.vue'
import ScrollNavDefault from '../pages/scroll-nav/default.vue'
import ScrollNavSide from '../pages/scroll-nav/side.vue'
63 64
import ImagePreviewIndex from '../pages/image-preview/index.vue'
import MultiImagesPreview from '../pages/image-preview/multi-images-preview.vue'
J
JiZhi 已提交
65 66 67 68 69 70
import TabBarIndex from '../pages/tab-bar/index.vue'
import TabBar from '../pages/tab-bar/tab-bar.vue'
import Tab from '../pages/tab-bar/tab-entry.vue'
import TabBasic from '../pages/tab-bar/tab-basic.vue'
import TabComposite from '../pages/tab-bar/tab-composite.vue'
import ScrollTab from '../pages/tab-bar/scroll-tab.vue'
C
christlala 已提交
71
import Checker from '../pages/checker.vue'
D
dolymood 已提交
72 73 74 75 76 77 78 79 80 81 82 83 84 85

const routes = [
  {
    path: '/button',
    component: Button
  },
  {
    path: '/checkbox',
    component: Checkbox
  },
  {
    path: '/checkbox-group',
    component: CheckboxGroup
  },
C
christlala 已提交
86 87 88 89
  {
    path: '/checker',
    component: Checker
  },
D
doly mood 已提交
90 91 92 93
  {
    path: '/radio',
    component: Radio
  },
A
update  
AmyFoxFN 已提交
94 95 96 97
  {
    path: '/input',
    component: Input
  },
E
Ethan 已提交
98 99 100 101
  {
    path: '/textarea',
    component: Textarea
  },
A
AmyFoxFN 已提交
102 103 104 105
  {
    path: '/switch',
    component: Switch
  },
D
doly mood 已提交
106 107 108 109 110 111 112 113 114 115 116
  {
    path: '/form',
    component: Form,
    children: [
      {
        path: 'default',
        component: FormDefault
      },
      {
        path: 'custom',
        component: FormCustom
117 118 119 120 121 122 123 124
      },
      {
        path: 'classic',
        component: FormClassic
      },
      {
        path: 'fresh',
        component: FormFresh
D
doly mood 已提交
125 126 127
      }
    ]
  },
D
dolymood 已提交
128 129 130 131 132 133 134 135
  {
    path: '/loading',
    component: Loading
  },
  {
    path: '/tip',
    component: Tip
  },
D
doly mood 已提交
136 137 138 139
  {
    path: '/toolbar',
    component: Toolbar
  },
D
dolymood 已提交
140 141 142 143 144 145 146 147
  {
    path: '/popup',
    component: Popup
  },
  {
    path: '/toast',
    component: Toast
  },
E
Ethan 已提交
148 149 150 151
  {
    path: '/rate',
    component: Rate
  },
D
dolymood 已提交
152 153 154 155 156 157 158 159
  {
    path: '/picker',
    component: Picker
  },
  {
    path: '/cascade-picker',
    component: CascadePicker
  },
A
Amy 已提交
160 161 162 163
  {
    path: '/segment-picker',
    component: SegmentPicker
  },
A
Amy 已提交
164 165 166 167
  {
    path: '/date-picker',
    component: DatePicker
  },
D
dolymood 已提交
168 169 170 171
  {
    path: '/time-picker',
    component: TimePicker
  },
A
Amy 已提交
172 173 174 175
  {
    path: '/select',
    component: Select
  },
D
dolymood 已提交
176 177 178 179 180 181 182 183
  {
    path: '/dialog',
    component: Dialog
  },
  {
    path: '/action-sheet',
    component: ActionSheet
  },
D
doly mood 已提交
184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199
  {
    path: '/drawer',
    component: Drawer,
    children: [
      {
        path: 'default',
        component: DrawerDefault
      },
      {
        path: 'custom',
        component: DrawerCustom
      }
    ]
  },
  {
    path: '/image-preview',
200 201 202 203 204 205 206
    component: ImagePreviewIndex,
    children: [
      {
        path: 'multi-images-preview',
        component: MultiImagesPreview
      }
    ]
D
doly mood 已提交
207
  },
D
dolymood 已提交
208 209
  {
    path: '/scroll',
T
tank0317 已提交
210 211 212 213 214 215 216 217 218 219 220 221 222 223 224
    component: Scroll,
    children: [
      {
        path: 'default',
        component: ScrollDefault
      },
      {
        path: 'config',
        component: ScrollConfig
      },
      {
        path: 'jd',
        component: ScrollJd
      },
      {
T
tank0317 已提交
225 226
        path: 'horizontal',
        component: ScrollHorizontal
T
tank0317 已提交
227 228 229 230
      },
      {
        path: 'toutiao',
        component: ScrollToutiao
T
tank0317 已提交
231 232 233 234 235 236 237 238 239 240 241 242
      },
      {
        path: 'v-scrolls',
        component: VScrolls
      },
      {
        path: 'h-scrolls',
        component: HScrolls
      },
      {
        path: 'textarea',
        component: TextareaInScroll
T
tank0317 已提交
243 244
      }
    ]
D
dolymood 已提交
245 246 247 248 249 250 251 252 253 254 255 256
  },
  {
    path: '/index-list',
    component: IndexList,
    children: [
      {
        path: 'default',
        component: IndexListDefault
      },
      {
        path: 'custom',
        component: IndexListCustom
257 258 259 260 261 262 263 264
      },
      {
        path: 'pull-up-load',
        component: IndexListPullUpLoad
      },
      {
        path: 'pull-down-refresh',
        component: IndexListPullDownRefresh
D
dolymood 已提交
265 266
      }
    ]
D
doly mood 已提交
267 268 269
  },
  {
    path: '/upload',
D
dolymood 已提交
270 271 272 273 274 275 276 277 278 279 280 281 282 283 284
    component: Upload,
    children: [
      {
        path: 'default',
        component: UploadDefault
      },
      {
        path: 'compress',
        component: UploadCompress
      },
      {
        path: 'custom',
        component: UploadCustom
      }
    ]
A
update  
AmyFoxFN 已提交
285 286 287 288
  },
  {
    path: '/validator',
    component: Validator
H
HuangYi 已提交
289 290 291 292 293 294 295 296 297 298 299 300 301 302
  },
  {
    path: '/swipe',
    component: Swipe,
    children: [
      {
        path: 'default',
        component: SwipeDefault
      },
      {
        path: 'custom',
        component: SwipeCustom
      }
    ]
303 304 305 306 307 308 309 310 311 312 313 314 315 316
  },
  {
    path: '/slide',
    component: Slide,
    children: [
      {
        path: 'vertical',
        component: SlideVertical
      },
      {
        path: 'horizontal',
        component: SlideHorizontal
      }
    ]
J
JiZhi 已提交
317 318 319 320 321
  },
  {
    path: '/toolbar',
    component: Toolbar
  },
322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357
  {
    path: '/sticky',
    component: Sticky,
    children: [
      {
        path: 'scroll',
        component: StickyScroll
      },
      {
        path: 'native',
        component: StickyNative
      },
      {
        path: 'wechat',
        component: StickyWechat
      }
    ]
  },
  {
    path: '/scroll-nav-bar',
    component: ScrollNavBar
  },
  {
    path: '/scroll-nav',
    component: ScrollNav,
    children: [
      {
        path: 'default',
        component: ScrollNavDefault
      },
      {
        path: 'side',
        component: ScrollNavSide
      }
    ]
  },
J
JiZhi 已提交
358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382
  {
    path: '/tab-bar',
    component: TabBarIndex,
    children: [
      {
        path: 'tab-bar',
        component: TabBar
      },
      {
        path: 'scroll-tab',
        component: ScrollTab
      },
      {
        path: 'tab',
        component: Tab,
        children: [
          { path: 'basic',
            component: TabBasic
          },
          { path: 'composite',
            component: TabComposite
          }
        ]
      }
    ]
D
dolymood 已提交
383 384 385 386
  }
]

export default routes