|
|
|
@ -10,7 +10,7 @@ Specifies a delay for loading state. If `spinning` ends during delay, loading st
|
|
|
|
|
|
|
|
|
|
```html
|
|
|
|
|
<style>
|
|
|
|
|
.content{
|
|
|
|
|
.spin-content{
|
|
|
|
|
border: 1px solid #91d5ff;
|
|
|
|
|
background-color: #e6f7ff;
|
|
|
|
|
padding: 30px;
|
|
|
|
@ -19,7 +19,7 @@ Specifies a delay for loading state. If `spinning` ends during delay, loading st
|
|
|
|
|
<template>
|
|
|
|
|
<div>
|
|
|
|
|
<a-spin :spinning="spinning" :delay="delayTime">
|
|
|
|
|
<div class="content">
|
|
|
|
|
<div class="spin-content">
|
|
|
|
|
可以点击‘切换’按钮,延迟显示 loading 效果。当 spinning 状态在 `delay` 时间内结束,则不显示 loading 状态。
|
|
|
|
|
</div>
|
|
|
|
|
</a-spin>
|
|
|
|
|