有没有办法在Vue组件中设置slot的样式?
<slot style="position: absolute"></slot>
和
<slot class="slot"></slot>
都无效.
和 VUE Slot 样式设置无效 有没有办法在Vue组件中设置slot的样式? 和 都无效. 第83篇《VUE Slot 样式设置无效》来自Winter(https://github.com/aiyld/aiyld.github.io)的站点 相似问题 问题类别
<slot style="position: absolute"></slot>
<slot class="slot"></slot>
Wrap the slot in a
<div>
and style the<div>
instead:If you really need to style the slot element, you can use CSS selectors like this: