38 lines
591 B
Vue
38 lines
591 B
Vue
<docs>
|
|
---
|
|
order: 4
|
|
title:
|
|
zh-CN: 加载中
|
|
en-US: Loading
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
标识开关操作仍在执行中。
|
|
|
|
## en-US
|
|
|
|
Mark a pending state of switch.
|
|
|
|
</docs>
|
|
<template>
|
|
<div>
|
|
<a-switch v-model:checked="checked1" loading />
|
|
<br />
|
|
<a-switch v-model:checked="checked2" size="small" loading />
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { defineComponent, reactive, toRefs } from 'vue';
|
|
export default defineComponent({
|
|
setup() {
|
|
const state = reactive({
|
|
checked1: true,
|
|
checked2: false,
|
|
});
|
|
return { ...toRefs(state) };
|
|
},
|
|
});
|
|
</script>
|