Vue 中的槽可以有默認的內容,這使我們可以製作出更容易使用的組件。 <button class="button" @click="$emit('click')"> <slot> <!-- Used if no slot ...
確定! 回上一頁