Avoid redundant template for slot #301
ShenQingchuan
started this conversation in
General
Replies: 1 comment
-
You may want to read our very first RFC: 0001-new-slot-syntax.md. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How the things be like now ?
For example, when using slots, we put something into a
<template #xxx> </template>
, but there are many cases with single root slot node...I copied a code snippet from ant-design-vue's comment UI component , as my example :
What do we want ?
I was wondering that if we can just extend the directive
v-slot:xxx
(or short as#xxx
)to make it can also be used on a normal element/Vue component rather than just
<template>
and then we can get our template more readability. It would be a great DX imporving for us...
Beta Was this translation helpful? Give feedback.
All reactions