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

528 B

#### 自定义指示符 使用自定义指示符。 #### Custom spinning indicator Use custom loading indicator.
<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>