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 | 5 | const prefixCls = 'ivu-layout'; |
6 | 6 | export default { |
7 | 7 | name: 'Content', |
8 | - props: { | |
9 | - className: { | |
10 | - type: String, | |
11 | - default: '' | |
12 | - } | |
13 | - }, | |
14 | 8 | data () { |
15 | 9 | return { |
16 | 10 | prefixCls: prefixCls |
... | ... | @@ -18,10 +12,7 @@ |
18 | 12 | }, |
19 | 13 | computed: { |
20 | 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 | 5 | const prefixCls = 'ivu-layout'; |
6 | 6 | export default { |
7 | 7 | name: 'Footer', |
8 | - props: { | |
9 | - className: { | |
10 | - type: String, | |
11 | - default: '' | |
12 | - } | |
13 | - }, | |
14 | 8 | data () { |
15 | 9 | return { |
16 | 10 | prefixCls: prefixCls |
... | ... | @@ -18,10 +12,7 @@ |
18 | 12 | }, |
19 | 13 | computed: { |
20 | 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 | 5 | const prefixCls = 'ivu-layout'; |
6 | 6 | export default { |
7 | 7 | name: 'Header', |
8 | - props: { | |
9 | - className: { | |
10 | - type: String, | |
11 | - default: '' | |
12 | - } | |
13 | - }, | |
14 | 8 | data () { |
15 | 9 | return { |
16 | 10 | prefixCls: prefixCls |
... | ... | @@ -18,10 +12,7 @@ |
18 | 12 | }, |
19 | 13 | computed: { |
20 | 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 | 6 | |
7 | 7 | export default { |
8 | 8 | name: 'Layout', |
9 | - props: { | |
10 | - className: { | |
11 | - type: String, | |
12 | - default: '' | |
13 | - } | |
14 | - }, | |
15 | 9 | data () { |
16 | 10 | return { |
17 | 11 | prefixCls: prefixCls, |
... | ... | @@ -22,7 +16,6 @@ |
22 | 16 | wrapClasses () { |
23 | 17 | return [ |
24 | 18 | `${prefixCls}`, |
25 | - this.className, | |
26 | 19 | { |
27 | 20 | [`${prefixCls}-has-sider`]: this.hasSider |
28 | 21 | } | ... | ... |
src/components/layout/sider.vue
... | ... | @@ -42,10 +42,6 @@ |
42 | 42 | type: Boolean, |
43 | 43 | default: false |
44 | 44 | }, |
45 | - className: { | |
46 | - type: String, | |
47 | - default: '' | |
48 | - }, | |
49 | 45 | width: { |
50 | 46 | type: [Number, String], |
51 | 47 | default: 200 |
... | ... | @@ -84,7 +80,6 @@ |
84 | 80 | wrapClasses () { |
85 | 81 | return [ |
86 | 82 | `${prefixCls}`, |
87 | - this.className, | |
88 | 83 | this.siderWidth ? '' : `${prefixCls}-zero-width`, |
89 | 84 | this.value ? `${prefixCls}-collapsed` : '' |
90 | 85 | ]; | ... | ... |