MIcon.vue 362 B

123456789101112131415161718192021222324252627282930
  1. <template>
  2. <text class="svg-icon">{{svg}}</text>
  3. </template>
  4. <script>
  5. export default {
  6. name: "MIcon",
  7. props: {
  8. svg: {
  9. type: String,
  10. default: ''
  11. }
  12. }
  13. data() {
  14. return {
  15. };
  16. }
  17. }
  18. </script>
  19. <style lang="scss">
  20. .svg-icon {
  21. width: 1em;
  22. height: 1em;
  23. vertical-align: -0.15em;
  24. fill: currentColor;
  25. overflow: hidden;
  26. }
  27. </style>