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

32 lines
455 B
Vue

<docs>
---
order: 6
title:
zh-CN: 自定义指示符
en-US: Custom spinning indicator
---
## zh-CN
使用自定义指示符
## en-US
Use custom loading indicator.
</docs>
<template>
<a-spin :indicator="indicator" />
</template>
<script lang="ts" setup>
import { LoadingOutlined } from '@ant-design/icons-vue';
import { h } from 'vue';
const indicator = h(LoadingOutlined, {
style: {
fontSize: '24px',
},
spin: true,
});
</script>