[improvement] List: unify text font-size (#4077)

This commit is contained in:
neverland
2019-08-09 14:03:19 +08:00
committed by GitHub
parent 19cd2ed38e
commit 4cba618792
10 changed files with 52 additions and 50 deletions
+7 -2
View File
@@ -13,7 +13,7 @@ const [createComponent, bem] = createNamespace('tabs');
export default createComponent({
mixins: [
ParentMixin('vanTabs'),
BindEventMixin(function (bind) {
BindEventMixin(function(bind) {
bind(window, 'resize', this.setLine, true);
})
],
@@ -148,7 +148,12 @@ export default createComponent({
this.$nextTick(() => {
const { titles } = this.$refs;
if (!titles || !titles[this.currentIndex] || this.type !== 'line' || isHidden(this.$el)) {
if (
!titles ||
!titles[this.currentIndex] ||
this.type !== 'line' ||
isHidden(this.$el)
) {
return;
}