mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-12 12:25:16 +08:00
404 B
404 B
Wrap
You can wrap a component inside spin.
<n-space vertical>
<n-spin :show="show">
<n-alert title="La La La" type="success">
Leave it till tomorrow to unpack my case. Honey disconnect the phone.
</n-alert>
</n-spin>
<n-button @click="show = !show">Click to Spin</n-button>
</n-space>
export default {
data () {
return {
show: false
}
}
}