<template>
  <Header :class="getHeaderClass">bz-pro-ui</Header>
</template>
<script lang="ts">
  import { computed, defineComponent } from 'vue';
  import { Layout } from 'ant-design-vue';
  import { useDesign } from '/@/hooks/web/useDesign';
  import { propTypes } from '/@/utils/propTypes';

  export default defineComponent({
    name: 'LayoutHeader',
    components: {
      Header: Layout.Header,
    },
    props: {
      fixed: propTypes.bool,
    },
    setup(props) {
      const { prefixCls } = useDesign('layout-header');

      const getHeaderClass = computed(() => {
        const theme = 'light';
        return [
          prefixCls,
          {
            [`${prefixCls}--fixed`]: props.fixed,
            [`${prefixCls}--${theme}`]: theme,
          },
        ];
      });
      return {
        prefixCls,
        getHeaderClass,
      };
    },
  });
</script>
<style lang="less">
  @import './index.less';
</style>
