ant-design-vue/components/spin/demo/custom-indicator.md

30 lines
528 B
Markdown

<cn>
#### 自定义指示符
使用自定义指示符。
</cn>
<us>
#### Custom spinning indicator
Use custom loading indicator.
</us>
```html
<template>
<div>
<a-spin>
<a-icon slot="indicator" type="loading" style="font-size: 24px" spin />
</a-spin>
<a-spin :indicator="indicator" />
</div>
</template>
<script>
export default {
data () {
return {
indicator: <i class="anticon anticon-loading anticon-spin ant-spin-dot" style="font-size: 24px;"></i>
}
},
}
</script>
```