当前位置:   article > 正文

动手吧,vue2自定义全局loading_vue2 开发移动端添加loading

vue2 开发移动端添加loading

新建loading.vue, 用来写loading组件

<template>
  <div class="loading-mask flex-center-center">
    <svg viewBox="25 25 50 50" class="circular">
      <circle cx="50" cy="50" r="20" fill="none" class="path"></circle>
      <circle cx="50" cy="50" r="15" fill="none" class="path"></circle>
      <circle cx="50" cy="50" r="10" fill="none" class="path"></circle>
    </svg>
  </div>
</template>

<style lang="scss">
.flex-center-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.loading-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  .circular {
    height: 35px;
    width: 35px;
    animati
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/你好赵伟/article/detail/218777
推荐阅读
相关标签
  

闽ICP备14008679号