diff --git a/packages/vant-eslint-config/index.js b/packages/vant-eslint-config/index.js index 863042b9a..f93f76530 100644 --- a/packages/vant-eslint-config/index.js +++ b/packages/vant-eslint-config/index.js @@ -58,6 +58,7 @@ module.exports = { // typescript-eslint '@typescript-eslint/camelcase': 'off', '@typescript-eslint/ban-ts-ignore': 'off', + '@typescript-eslint/no-unused-vars': 'error', '@typescript-eslint/no-var-requires': 'off', '@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/no-empty-function': 'off', diff --git a/src/tabs/index.less b/src/tabs/index.less index e3e2912da..e2e26e834 100644 --- a/src/tabs/index.less +++ b/src/tabs/index.less @@ -3,9 +3,9 @@ .van-tab { position: relative; display: flex; + flex: 1; align-items: center; justify-content: center; - flex: 1; box-sizing: border-box; padding: 0 @padding-base; color: @tab-text-color; @@ -25,9 +25,9 @@ &__text { &--ellipsis { display: -webkit-box; + overflow: hidden; -webkit-line-clamp: 1; -webkit-box-orient: vertical; - overflow: hidden; } }