add layout (#6600)

* add layout

* add docs

* add en docs

* fix test
This commit is contained in:
杨奕
2017-08-22 12:46:22 +08:00
committed by GitHub
parent 8e8b172bdc
commit bf6661266a
24 changed files with 945 additions and 4 deletions

8
packages/header/index.js Normal file
View File

@@ -0,0 +1,8 @@
import Header from './src/main';
/* istanbul ignore next */
Header.install = function(Vue) {
Vue.component(Header.name, Header);
};
export default Header;

View File

@@ -0,0 +1,20 @@
<template>
<header class="el-header" :style="{ height }">
<slot></slot>
</header>
</template>
<script>
export default {
name: 'ElHeader',
componentName: 'ElHeader',
props: {
height: {
type: String,
default: '60px'
}
}
};
</script>