remove className props
This commit is contained in:
parent
f724eb5797
commit
1012b5cdaa
5 changed files with 3 additions and 42 deletions
|
@ -5,12 +5,6 @@
|
|||
const prefixCls = 'ivu-layout';
|
||||
export default {
|
||||
name: 'Content',
|
||||
props: {
|
||||
className: {
|
||||
type: String,
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
prefixCls: prefixCls
|
||||
|
@ -18,10 +12,7 @@
|
|||
},
|
||||
computed: {
|
||||
wrapClasses () {
|
||||
return [
|
||||
`${prefixCls}-content`,
|
||||
this.className
|
||||
];
|
||||
return `${prefixCls}-content`;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
@ -5,12 +5,6 @@
|
|||
const prefixCls = 'ivu-layout';
|
||||
export default {
|
||||
name: 'Footer',
|
||||
props: {
|
||||
className: {
|
||||
type: String,
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
prefixCls: prefixCls
|
||||
|
@ -18,10 +12,7 @@
|
|||
},
|
||||
computed: {
|
||||
wrapClasses () {
|
||||
return [
|
||||
`${prefixCls}-footer`,
|
||||
this.className
|
||||
];
|
||||
return `${prefixCls}-footer`;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
@ -5,12 +5,6 @@
|
|||
const prefixCls = 'ivu-layout';
|
||||
export default {
|
||||
name: 'Header',
|
||||
props: {
|
||||
className: {
|
||||
type: String,
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
prefixCls: prefixCls
|
||||
|
@ -18,10 +12,7 @@
|
|||
},
|
||||
computed: {
|
||||
wrapClasses () {
|
||||
return [
|
||||
`${prefixCls}-header`,
|
||||
this.className
|
||||
];
|
||||
return `${prefixCls}-header`;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
@ -6,12 +6,6 @@
|
|||
|
||||
export default {
|
||||
name: 'Layout',
|
||||
props: {
|
||||
className: {
|
||||
type: String,
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
prefixCls: prefixCls,
|
||||
|
@ -22,7 +16,6 @@
|
|||
wrapClasses () {
|
||||
return [
|
||||
`${prefixCls}`,
|
||||
this.className,
|
||||
{
|
||||
[`${prefixCls}-has-sider`]: this.hasSider
|
||||
}
|
||||
|
|
|
@ -42,10 +42,6 @@
|
|||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
className: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
width: {
|
||||
type: [Number, String],
|
||||
default: 200
|
||||
|
@ -84,7 +80,6 @@
|
|||
wrapClasses () {
|
||||
return [
|
||||
`${prefixCls}`,
|
||||
this.className,
|
||||
this.siderWidth ? '' : `${prefixCls}-zero-width`,
|
||||
this.value ? `${prefixCls}-collapsed` : ''
|
||||
];
|
||||
|
|
Loading…
Add table
Reference in a new issue