Commit 1012b5cdaa7222e68aaea13a2ac761fea2205bc0
1 parent
f724eb57
remove className props
Showing
5 changed files
with
3 additions
and
42 deletions
Show diff stats
src/components/layout/content.vue
| @@ -5,12 +5,6 @@ | @@ -5,12 +5,6 @@ | ||
| 5 | const prefixCls = 'ivu-layout'; | 5 | const prefixCls = 'ivu-layout'; |
| 6 | export default { | 6 | export default { |
| 7 | name: 'Content', | 7 | name: 'Content', |
| 8 | - props: { | ||
| 9 | - className: { | ||
| 10 | - type: String, | ||
| 11 | - default: '' | ||
| 12 | - } | ||
| 13 | - }, | ||
| 14 | data () { | 8 | data () { |
| 15 | return { | 9 | return { |
| 16 | prefixCls: prefixCls | 10 | prefixCls: prefixCls |
| @@ -18,10 +12,7 @@ | @@ -18,10 +12,7 @@ | ||
| 18 | }, | 12 | }, |
| 19 | computed: { | 13 | computed: { |
| 20 | wrapClasses () { | 14 | wrapClasses () { |
| 21 | - return [ | ||
| 22 | - `${prefixCls}-content`, | ||
| 23 | - this.className | ||
| 24 | - ]; | 15 | + return `${prefixCls}-content`; |
| 25 | } | 16 | } |
| 26 | } | 17 | } |
| 27 | }; | 18 | }; |
src/components/layout/footer.vue
| @@ -5,12 +5,6 @@ | @@ -5,12 +5,6 @@ | ||
| 5 | const prefixCls = 'ivu-layout'; | 5 | const prefixCls = 'ivu-layout'; |
| 6 | export default { | 6 | export default { |
| 7 | name: 'Footer', | 7 | name: 'Footer', |
| 8 | - props: { | ||
| 9 | - className: { | ||
| 10 | - type: String, | ||
| 11 | - default: '' | ||
| 12 | - } | ||
| 13 | - }, | ||
| 14 | data () { | 8 | data () { |
| 15 | return { | 9 | return { |
| 16 | prefixCls: prefixCls | 10 | prefixCls: prefixCls |
| @@ -18,10 +12,7 @@ | @@ -18,10 +12,7 @@ | ||
| 18 | }, | 12 | }, |
| 19 | computed: { | 13 | computed: { |
| 20 | wrapClasses () { | 14 | wrapClasses () { |
| 21 | - return [ | ||
| 22 | - `${prefixCls}-footer`, | ||
| 23 | - this.className | ||
| 24 | - ]; | 15 | + return `${prefixCls}-footer`; |
| 25 | } | 16 | } |
| 26 | } | 17 | } |
| 27 | }; | 18 | }; |
src/components/layout/header.vue
| @@ -5,12 +5,6 @@ | @@ -5,12 +5,6 @@ | ||
| 5 | const prefixCls = 'ivu-layout'; | 5 | const prefixCls = 'ivu-layout'; |
| 6 | export default { | 6 | export default { |
| 7 | name: 'Header', | 7 | name: 'Header', |
| 8 | - props: { | ||
| 9 | - className: { | ||
| 10 | - type: String, | ||
| 11 | - default: '' | ||
| 12 | - } | ||
| 13 | - }, | ||
| 14 | data () { | 8 | data () { |
| 15 | return { | 9 | return { |
| 16 | prefixCls: prefixCls | 10 | prefixCls: prefixCls |
| @@ -18,10 +12,7 @@ | @@ -18,10 +12,7 @@ | ||
| 18 | }, | 12 | }, |
| 19 | computed: { | 13 | computed: { |
| 20 | wrapClasses () { | 14 | wrapClasses () { |
| 21 | - return [ | ||
| 22 | - `${prefixCls}-header`, | ||
| 23 | - this.className | ||
| 24 | - ]; | 15 | + return `${prefixCls}-header`; |
| 25 | } | 16 | } |
| 26 | } | 17 | } |
| 27 | }; | 18 | }; |
src/components/layout/layout.vue
| @@ -6,12 +6,6 @@ | @@ -6,12 +6,6 @@ | ||
| 6 | 6 | ||
| 7 | export default { | 7 | export default { |
| 8 | name: 'Layout', | 8 | name: 'Layout', |
| 9 | - props: { | ||
| 10 | - className: { | ||
| 11 | - type: String, | ||
| 12 | - default: '' | ||
| 13 | - } | ||
| 14 | - }, | ||
| 15 | data () { | 9 | data () { |
| 16 | return { | 10 | return { |
| 17 | prefixCls: prefixCls, | 11 | prefixCls: prefixCls, |
| @@ -22,7 +16,6 @@ | @@ -22,7 +16,6 @@ | ||
| 22 | wrapClasses () { | 16 | wrapClasses () { |
| 23 | return [ | 17 | return [ |
| 24 | `${prefixCls}`, | 18 | `${prefixCls}`, |
| 25 | - this.className, | ||
| 26 | { | 19 | { |
| 27 | [`${prefixCls}-has-sider`]: this.hasSider | 20 | [`${prefixCls}-has-sider`]: this.hasSider |
| 28 | } | 21 | } |
src/components/layout/sider.vue
| @@ -42,10 +42,6 @@ | @@ -42,10 +42,6 @@ | ||
| 42 | type: Boolean, | 42 | type: Boolean, |
| 43 | default: false | 43 | default: false |
| 44 | }, | 44 | }, |
| 45 | - className: { | ||
| 46 | - type: String, | ||
| 47 | - default: '' | ||
| 48 | - }, | ||
| 49 | width: { | 45 | width: { |
| 50 | type: [Number, String], | 46 | type: [Number, String], |
| 51 | default: 200 | 47 | default: 200 |
| @@ -84,7 +80,6 @@ | @@ -84,7 +80,6 @@ | ||
| 84 | wrapClasses () { | 80 | wrapClasses () { |
| 85 | return [ | 81 | return [ |
| 86 | `${prefixCls}`, | 82 | `${prefixCls}`, |
| 87 | - this.className, | ||
| 88 | this.siderWidth ? '' : `${prefixCls}-zero-width`, | 83 | this.siderWidth ? '' : `${prefixCls}-zero-width`, |
| 89 | this.value ? `${prefixCls}-collapsed` : '' | 84 | this.value ? `${prefixCls}-collapsed` : '' |
| 90 | ]; | 85 | ]; |