add layout component with header, content, sider and footer
This commit is contained in:
parent
e6508e277f
commit
a2eb028782
17 changed files with 509 additions and 4 deletions
28
src/components/layout/content.vue
Normal file
28
src/components/layout/content.vue
Normal file
|
@ -0,0 +1,28 @@
|
|||
<template>
|
||||
<div :class="wrapClasses"><slot></slot></div>
|
||||
</template>
|
||||
<script>
|
||||
const prefixCls = 'ivu-layout';
|
||||
export default {
|
||||
name: 'Content',
|
||||
props: {
|
||||
className: {
|
||||
type: String,
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
prefixCls: prefixCls
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
wrapClasses () {
|
||||
return [
|
||||
`${prefixCls}-content`,
|
||||
this.className
|
||||
];
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue