From 1012b5cdaa7222e68aaea13a2ac761fea2205bc0 Mon Sep 17 00:00:00 2001 From: zhigang.li Date: Mon, 18 Dec 2017 18:41:55 +0800 Subject: [PATCH] remove className props --- src/components/layout/content.vue | 11 +---------- src/components/layout/footer.vue | 11 +---------- src/components/layout/header.vue | 11 +---------- src/components/layout/layout.vue | 7 ------- src/components/layout/sider.vue | 5 ----- 5 files changed, 3 insertions(+), 42 deletions(-) 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