5.0.0 • Published 5 years ago

@gem-mine/demo-sr v5.0.0

Weekly downloads
12
License
-
Repository
-
Last release
5 years ago

带路由/数据流的组件脚手架

此文件会复制到引用项目中,作为面向用户的README, 请认真填写

Example

import getPageRoute from 'demoComponent'

export default {
  path: '/demox',
  // 子路由
  sub: {
    ...pageRoute({
      relativePath: 'demox',
      modelPrefix: 'xxx'
    })
  }
}

API

getPageRoute

获取路由配置,直接挂载到路由中

NameTypeDefaultDescription
option.relativePath{string}''路由的相对路径
option.modelPrefix{string}''store前缀,主要用途防止命名冲突