mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-24 12:45:18 +08:00
32 lines
390 B
Markdown
32 lines
390 B
Markdown
# Loading
|
|
Button has loading status.
|
|
```html
|
|
<n-button
|
|
:loading="loading"
|
|
icon-placement="right"
|
|
@click="loading = !loading"
|
|
>
|
|
Click Me
|
|
</n-button>
|
|
```
|
|
|
|
```js
|
|
import cashOutline from 'naive-ui/lib/icons/cash-outline'
|
|
|
|
export default {
|
|
components: {
|
|
cashOutline
|
|
},
|
|
data () {
|
|
return {
|
|
loading: false
|
|
}
|
|
}
|
|
}
|
|
```
|
|
```css
|
|
.n-button {
|
|
margin: 0 8px 8px 0;
|
|
}
|
|
```
|