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

493 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: <a-icon type="loading" style="font-size: 24px" spin />,
      };
    },
  };
</script>