antfu-collective / vitesse

🏕 Opinionated Vite + Vue Starter Template

Home Page:https://vitesse.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

the layout system not work in tsx

zcyc opened this issue · comments

export default defineComponent({
  setup() {
    return () => <>
      <route lang="yaml">
        meta:
        layout: home
      </route>
    </>
  },
})

it's always use default layout
image

eslint rule is not work good for tsx yet

commented

It may also be that the yaml is invalid. Try indenting the layout definition.

<route lang="yaml">
    meta:
      layout: home
</route>

This is out-of-scope of Vitesse. Please request to vite-plugin-vue-layout instead.

It may also be that the yaml is invalid. Try indenting the layout definition.

<route lang="yaml">
    meta:
      layout: home
</route>

改成规范 yaml 也不能用的。