mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[improvement] Tab: split less file
This commit is contained in:
parent
2bf84cd790
commit
0ef834e323
@ -22,6 +22,7 @@
|
||||
@import './steps/index';
|
||||
@import './step/index';
|
||||
@import './tag/index';
|
||||
@import './tab/index';
|
||||
@import './tabs/index';
|
||||
@import './tabbar/index';
|
||||
@import './tabbar-item/index';
|
||||
|
17
packages/tab/index.less
Normal file
17
packages/tab/index.less
Normal file
@ -0,0 +1,17 @@
|
||||
@import '../style/var';
|
||||
|
||||
.van-tab {
|
||||
&__pane {
|
||||
&,
|
||||
&-wrapper {
|
||||
flex-shrink: 0;
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
&-wrapper--inactive {
|
||||
height: 0;
|
||||
overflow: visible;
|
||||
}
|
||||
}
|
||||
}
|
@ -141,17 +141,3 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.van-tab__pane {
|
||||
&,
|
||||
&-wrapper {
|
||||
flex-shrink: 0;
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
&-wrapper--inactive {
|
||||
height: 0;
|
||||
overflow: visible;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user