first
This commit is contained in:
8
packages/footer/index.js
Normal file
8
packages/footer/index.js
Normal file
@@ -0,0 +1,8 @@
|
||||
import Footer from './src/main';
|
||||
|
||||
/* istanbul ignore next */
|
||||
Footer.install = function(Vue) {
|
||||
Vue.component(Footer.name, Footer);
|
||||
};
|
||||
|
||||
export default Footer;
|
20
packages/footer/src/main.vue
Normal file
20
packages/footer/src/main.vue
Normal file
@@ -0,0 +1,20 @@
|
||||
<template>
|
||||
<footer class="el-footer" :style="{ height }">
|
||||
<slot></slot>
|
||||
</footer>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'ElFooter',
|
||||
|
||||
componentName: 'ElFooter',
|
||||
|
||||
props: {
|
||||
height: {
|
||||
type: String,
|
||||
default: '60px'
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
Reference in New Issue
Block a user