Closed privatenumber closed 2 months ago
Warning: I made this PR on top of https://github.com/vuejs/eslint-plugin-vue/pull/2529 but I needed to open a PR against the master branch for it to show up in this repo
master
The #slot syntax doesn't work when passed into a native HTML <div> element for obvious reasons.
#slot
<div>
However, the old slot="name" syntax works... Demo
slot="name"
This can happen (and has happened in my work project) when a dynamic component renders a div to fallback when certain conditions aren't met:
div
The
#slot
syntax doesn't work when passed into a native HTML<div>
element for obvious reasons.However, the old
slot="name"
syntax works... DemoThis can happen (and has happened in my work project) when a dynamic component renders a
div
to fallback when certain conditions aren't met: