Rap 原分销系统代码Web
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

6a3b4146d5c6e5446b1798421012fda98d54d8ba.svn-base 1.1KB

5 个月前
1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <template>
  2. <div style="padding: 0 15px;" @click="toggleClick">
  3. <svg
  4. :class="{'is-active':isActive}"
  5. class="hamburger"
  6. viewBox="0 0 1024 1024"
  7. xmlns="http://www.w3.org/2000/svg"
  8. width="64"
  9. height="64"
  10. >
  11. <path d="M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 0 0 0-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0 0 14.4 7z" />
  12. </svg>
  13. </div>
  14. </template>
  15. <script>
  16. export default {
  17. name: 'Hamburger',
  18. props: {
  19. isActive: {
  20. type: Boolean,
  21. default: false
  22. }
  23. },
  24. methods: {
  25. toggleClick() {
  26. this.$emit('toggleClick')
  27. }
  28. }
  29. }
  30. </script>
  31. <style scoped>
  32. .hamburger {
  33. display: inline-block;
  34. vertical-align: middle;
  35. width: 20px;
  36. height: 20px;
  37. }
  38. .hamburger.is-active {
  39. transform: rotate(180deg);
  40. }
  41. </style>