Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support <route> custom block #146

Merged
merged 1 commit into from
May 19, 2020
Merged

feat: support <route> custom block #146

merged 1 commit into from
May 19, 2020

Conversation

ktsn
Copy link
Owner

@ktsn ktsn commented May 19, 2020

DEPRECATED: <route-meta> is deprecated in favor of <route>

fix #67
fix #144
fix ktsn/vue-auto-routing#21

It supports <route> custom block which allows users to overwrite route record.

Example users.vue:

<route>
{
  "name": "UserPage",
  "props": true
}
</route>

The following route record will be generated:

routes: [
  {
    name: "UserPage",
    props: true,
    path: '/users',
    component: Users
  }
]

Note that it does not allow to overwrite path and component option.

DEPRECATED: <route-meta> is deprecated in favor of <route>
@ktsn ktsn merged commit 030be2f into master May 19, 2020
@ktsn ktsn deleted the route-block branch May 19, 2020 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

custom routeName Passing dynamic params as props How to specify route name
1 participant