nav-logo.vue 624 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <!-- 左上:logo部分 -->
  2. <template>
  3. <div class="com-logo-box" :title="$root.title" @click="$root.showHome()">
  4. <img :src="$root.logo" class="admin-logo" v-if="$root.logo">
  5. <span class="admin-title">{{ $root.title }}</span>
  6. </div>
  7. </template>
  8. <script>
  9. module.exports = {
  10. data() {
  11. return {}
  12. },
  13. methods: {},
  14. created() {
  15. }
  16. }
  17. </script>
  18. <style scoped>
  19. .com-logo-box {
  20. cursor: pointer;
  21. }
  22. .admin-logo {
  23. width: 40px;
  24. height: 40px;
  25. border-radius: 50%;
  26. vertical-align: middle;
  27. margin-left: 22px;
  28. }
  29. .admin-title {
  30. padding-right: 0.5em;
  31. margin-left: 2em;
  32. font-size: 1.05em;
  33. }
  34. </style>