| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 | <template>  <div class="loading">    <div></div>    <div></div>  </div></template><script>export default {  name: "Loading"}</script><style scoped>/*纯css实现loading效果*/.loading,.loading > div {  position: relative;  box-sizing: border-box;}.loading {  display: block;  font-size: 0;  color: #000;}.loading.la-dark {  color: #333;}.loading > div {  display: inline-block;  float: none;  background-color: currentColor;  border: 0 solid currentColor;}.loading {  width: 100%;  height: 100%;  animation: ball-spin-rotate 2s infinite linear;}.loading > div {  position: absolute;  top: 0;  width: 60%;  height: 60%;  border-radius: 100%;  animation: ball-spin-bounce 2s infinite ease-in-out;}.loading > div:last-child {  top: auto;  bottom: 0;  animation-delay: -1s;}@keyframes ball-spin-rotate {  100% {    transform: rotate(360deg);  }}@keyframes ball-spin-bounce {  0%,  100% {    transform: scale(0);  }  50% {    transform: scale(1);  }}</style>
 |