[improvement] Tab: split less file

This commit is contained in:
陈嘉涵 2019-05-11 11:59:10 +08:00
parent 2bf84cd790
commit 0ef834e323
3 changed files with 18 additions and 14 deletions

View File

@ -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
View 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;
}
}
}

View File

@ -141,17 +141,3 @@
}
}
}
.van-tab__pane {
&,
&-wrapper {
flex-shrink: 0;
box-sizing: border-box;
width: 100%;
}
&-wrapper--inactive {
height: 0;
overflow: visible;
}
}