Blame view

src/components/layout/header.vue 400 Bytes
a2eb0287   zhigang.li   add layout compon...
1
2
3
4
5
6
7
  <template>
      <div :class="wrapClasses"><slot></slot></div>
  </template>
  <script>
      const prefixCls = 'ivu-layout';
      export default {
          name: 'Header',
a2eb0287   zhigang.li   add layout compon...
8
9
10
11
12
13
14
          data () {
              return {
                  prefixCls: prefixCls
              };
          },
          computed: {
              wrapClasses () {
1012b5cd   zhigang.li   remove className ...
15
                  return `${prefixCls}-header`;
a2eb0287   zhigang.li   add layout compon...
16
17
18
19
              }
          }
      };
  </script>