Ripple.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <template>
  2. <el-tag></el-tag>
  3. <!-- <div class="ripple-wrapper" :class="color || ''">-->
  4. <!-- <div class="ripple" @click="handleRipple" :class="className" :style="size ? `width: ${size}px; height: ${size}px;` : ''">-->
  5. <!-- </div>-->
  6. <!-- <div class="background"></div>-->
  7. <!-- </div>-->
  8. </template>
  9. <script>
  10. // export default {
  11. // props: ["size", "color"],
  12. // data () {
  13. // return {
  14. // className: "hide"
  15. // };
  16. // },
  17. // methods: {
  18. // handleRipple () {
  19. // this.className = "";
  20. // this.$nextTick(() => {
  21. // this.className = "show";
  22. // setTimeout(() => {
  23. // this.className = "";
  24. // }, 500);
  25. // });
  26. // }
  27. // }
  28. // };
  29. </script>
  30. <!--<style lang="scss" scoped>-->
  31. <!--@import "src/style/theme.scss";-->
  32. <!--$opacity: 1;-->
  33. <!--.ripple-wrapper {-->
  34. <!-- position: absolute;-->
  35. <!-- width: 100%;-->
  36. <!-- height: 100%;-->
  37. <!-- top: 0;-->
  38. <!-- left: 0;-->
  39. <!-- display: flex;-->
  40. <!-- align-items: center;-->
  41. <!-- justify-content: center;-->
  42. <!--}-->
  43. <!--.ripple {-->
  44. <!-- -webkit-tap-highlight-color: transparent;-->
  45. <!-- opacity: 0;-->
  46. <!-- width: 80px;-->
  47. <!-- height: 80px;-->
  48. <!-- z-index: 2;-->
  49. <!-- position: absolute;-->
  50. <!-- background-color: $theme-blue-transparent;-->
  51. <!-- border-radius: 100000px;-->
  52. <!-- transform-origin: center;-->
  53. <!--}-->
  54. <!--.show {-->
  55. <!-- opacity: $opacity;-->
  56. <!-- animation: ripple .5s forwards ease-out;-->
  57. <!--}-->
  58. <!--.red {-->
  59. <!-- .ripple {-->
  60. <!-- background: $theme-red-transparent;-->
  61. <!-- }-->
  62. <!--}-->
  63. <!--.orange {-->
  64. <!-- .ripple {-->
  65. <!-- background: $theme-orange-transparent;-->
  66. <!-- }-->
  67. <!--}-->
  68. <!--.green {-->
  69. <!-- .ripple {-->
  70. <!-- background: $theme-green-transparent;-->
  71. <!-- }-->
  72. <!--}-->
  73. <!--.blue {-->
  74. <!-- .ripple {-->
  75. <!-- background: $theme-blue-transparent;-->
  76. <!-- }-->
  77. <!--}-->
  78. <!--@keyframes ripple {-->
  79. <!-- 0% {-->
  80. <!-- opacity: $opacity;-->
  81. <!-- transform: scale(0.1, 0.1);-->
  82. <!-- }-->
  83. <!-- 40% {-->
  84. <!-- opacity: $opacity;-->
  85. <!-- transform: scale(1, 1);-->
  86. <!-- }-->
  87. <!-- 80% {-->
  88. <!-- opacity: $opacity;-->
  89. <!-- transform: scale(1, 1);-->
  90. <!-- }-->
  91. <!-- 100% {-->
  92. <!-- opacity: 0;-->
  93. <!-- }-->
  94. <!--}-->
  95. <!--</style>-->