headerBelt.vue 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <template>
  2. <div class="vent-custom-header">
  3. <div class="vent-home-header">
  4. <div class="header-text"><slot></slot></div>
  5. </div>
  6. </div>
  7. </template>
  8. <script lang="ts">
  9. import { defineComponent, computed } from 'vue';
  10. import { Decoration5 } from '@kjgl77/datav-vue3';
  11. export default defineComponent({
  12. name: 'CustomHeader',
  13. components: { Decoration5 },
  14. props: {},
  15. emits: ['change'],
  16. });
  17. </script>
  18. <style lang="less">
  19. @import '/@/design/vent/modal.less';
  20. .@{ventSpace}-select-dropdown.drop {
  21. background-color: transparent !important;
  22. .@{ventSpace}-select-item-option-selected,
  23. .@{ventSpace}-select-item-option-active {
  24. background-color: #ffffff33 !important;
  25. }
  26. .@{ventSpace}-select-item {
  27. color: inherit;
  28. &:hover {
  29. background-color: #ffffff33 !important;
  30. }
  31. }
  32. .@{ventSpace}-select-tree {
  33. .@{ventSpace}-select-tree-treenode {
  34. color: inherit;
  35. }
  36. .@{ventSpace}-select-tree-switcher-icon {
  37. color: inherit;
  38. }
  39. }
  40. }
  41. </style>
  42. <style lang="less" scoped>
  43. @import '/@/design/theme.less';
  44. @ventSpace: zxm;
  45. .vent-custom-header {
  46. --image-vent-header1: url('/@/assets/images/beltFire/top.png');
  47. width: 100%;
  48. position: relative;
  49. z-index: 9999;
  50. pointer-events: none;
  51. .vent-home-header {
  52. width: 100%;
  53. position: fixed;
  54. top: 0;
  55. // background: url('/@/assets/images/vent/new-home/header-bg.png') no-repeat;
  56. // height: 100px;
  57. height: 89px;
  58. background-size: contain;
  59. display: flex;
  60. justify-content: center;
  61. .header-icon {
  62. margin-top: 45px;
  63. }
  64. .header-text {
  65. position: fixed;
  66. top: 5px;
  67. color: #fff;
  68. font-size: 32px;
  69. font-family: 'ysbtFont';
  70. background-image: linear-gradient(#ffffff 50%, @vent-base-light-bg);
  71. -webkit-background-clip: text;
  72. color: transparent;
  73. }
  74. }
  75. }
  76. :deep(.zxm-select) {
  77. width: 300px;
  78. .@{ventSpace}-select-selector {
  79. background: transparent !important;
  80. border: none !important;
  81. box-shadow: none !important;
  82. .zxm-select-selection-item {
  83. color: #fff !important;
  84. font-size: 20px;
  85. }
  86. }
  87. .@{ventSpace}-select-arrow {
  88. color: #fff !important;
  89. }
  90. }
  91. </style>