只有一個插槽(預設slot)
當只有一個插槽時,就不須命名
// child.vue
<template>
<slot>子元件預設內容</slot>
</template>
如果父元件沒有放插槽內容,就會顯示子元件中預設的內容。父元件有放插槽內容時,子元件的預設內容就不會顯示。
Are you sure to leave this team?
Once you delete your team, all team notes will be deleted and cannot be recovered. Please ensure you've exported or transfered these notes.
Enter team name before deleting it:
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up