mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 09:24:25 +00:00
新增几个图标 && 修复tabs组件为空报错的问题 (#61)
* fix: tabs empty will cause an error * add new icons
This commit is contained in:
@@ -92,7 +92,7 @@
|
||||
* `type`为`line`时,tab下方的横线的样式
|
||||
*/
|
||||
navBarStyle() {
|
||||
if (!this.isReady || this.type !== 'line') return;
|
||||
if (!this.isReady || this.type !== 'line' || !this.$refs.tabkey) return;
|
||||
|
||||
const tabKey = this.curActive;
|
||||
const elem = this.$refs.tabkey[tabKey];
|
||||
|
Reference in New Issue
Block a user