naive-ui/demo/documentation/components/spin/enUS/wrap.demo.md
2020-12-12 15:33:41 +08:00

25 lines
404 B
Markdown

# Wrap
You can wrap a component inside spin.
```html
<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>
```
```js
export default {
data () {
return {
show: false
}
}
}
```