xm-title-bar-render.vue 536 B

123456789101112131415161718192021222324252627282930
  1. <template>
  2. <div :class="$style.titleBar" :style="{ backgroundColor: $attrs.barColor.hex }">
  3. {{ $attrs.barTitle }}
  4. </div>
  5. </template>
  6. <script>
  7. import components from './_import-components/xm-title-bar-render-import'
  8. export default {
  9. name: 'XmTitleBarRender',
  10. metaInfo: {
  11. title: 'XmTitleBarRender',
  12. },
  13. components,
  14. data() {
  15. return {}
  16. },
  17. methods: {},
  18. }
  19. </script>
  20. <style module lang="scss">
  21. @use '@/common/design' as *;
  22. .title-bar {
  23. position: relative;
  24. left: -5px;
  25. width: calc(100% + 10px);
  26. }
  27. </style>