Skip to content

Commit 78033c6

Browse files
committed
refactor: GlobalLaout.vue css move global.less,multi-tab update
1 parent 2e7907c commit 78033c6

File tree

7 files changed

+521
-501
lines changed

7 files changed

+521
-501
lines changed

src/components/MultiTab/MultiTab.vue

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -157,15 +157,17 @@ export default {
157157
})
158158
159159
return (
160-
<div style="margin: -23px -24px 24px -24px">
161-
<a-tabs
162-
hideAdd
163-
type={'editable-card'}
164-
v-model={this.activeKey}
165-
tabBarStyle={{ background: '#FFF', margin: 0, paddingLeft: '16px', paddingTop: '1px' }}
166-
{...{ on: { edit: onEdit } }}>
167-
{panes}
168-
</a-tabs>
160+
<div class="ant-pro-multi-tab">
161+
<div class="ant-pro-multi-tab-wrapper">
162+
<a-tabs
163+
hideAdd
164+
type={'editable-card'}
165+
v-model={this.activeKey}
166+
tabBarStyle={{ background: '#FFF', margin: 0, paddingLeft: '16px', paddingTop: '1px' }}
167+
{...{ on: { edit: onEdit } }}>
168+
{panes}
169+
</a-tabs>
170+
</div>
169171
</div>
170172
)
171173
}

src/components/MultiTab/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
import MultiTab from './MultiTab'
2+
import './index.less'
3+
24
export default MultiTab

src/components/MultiTab/index.less

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
@import '../index';
2+
3+
@multi-tab-prefix-cls: ~"@{ant-pro-prefix}-multi-tab";
4+
@multi-tab-wrapper-prefix-cls: ~"@{ant-pro-prefix}-multi-tab-wrapper";
5+
6+
/*
7+
.topmenu .@{multi-tab-prefix-cls} {
8+
max-width: 1200px;
9+
margin: -23px auto 24px auto;
10+
}
11+
*/
12+
.@{multi-tab-prefix-cls} {
13+
margin: -23px -24px 24px -24px;
14+
background: #fff;
15+
}
16+
17+
.topmenu .@{multi-tab-wrapper-prefix-cls} {
18+
max-width: 1200px;
19+
margin: 0 auto;
20+
}

0 commit comments

Comments
 (0)