diff --git a/src/components/layout/content.vue b/src/components/layout/content.vue index 95802f9..03caad3 100644 --- a/src/components/layout/content.vue +++ b/src/components/layout/content.vue @@ -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`; } } }; diff --git a/src/components/layout/footer.vue b/src/components/layout/footer.vue index 7ef94e3..2bc5322 100644 --- a/src/components/layout/footer.vue +++ b/src/components/layout/footer.vue @@ -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`; } } }; diff --git a/src/components/layout/header.vue b/src/components/layout/header.vue index 5f2a09a..2ca4dd2 100644 --- a/src/components/layout/header.vue +++ b/src/components/layout/header.vue @@ -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`; } } }; diff --git a/src/components/layout/layout.vue b/src/components/layout/layout.vue index 1c29484..1d71e99 100644 --- a/src/components/layout/layout.vue +++ b/src/components/layout/layout.vue @@ -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 } diff --git a/src/components/layout/sider.vue b/src/components/layout/sider.vue index 66af091..16ed865 100644 --- a/src/components/layout/sider.vue +++ b/src/components/layout/sider.vue @@ -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` : '' ]; -- libgit2 0.21.4