You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
581 B
39 lines
581 B
3 years ago
|
<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">
|
||
|
import { LoadingOutlined } from '@ant-design/icons-vue';
|
||
|
import { defineComponent, h } from 'vue';
|
||
|
export default defineComponent({
|
||
|
setup() {
|
||
|
const indicator = h(LoadingOutlined, {
|
||
|
style: {
|
||
|
fontSize: '24px',
|
||
|
},
|
||
|
spin: true,
|
||
|
});
|
||
|
return {
|
||
|
indicator,
|
||
|
};
|
||
|
},
|
||
|
});
|
||
|
</script>
|