新增几个图标 && 修复tabs组件为空报错的问题 (#61)

* fix: tabs empty will cause an error

* add new icons
This commit is contained in:
张敏
2017-07-27 21:11:16 +08:00
committed by Yao
parent 765a97106a
commit 31bc31af81
7 changed files with 95 additions and 21 deletions

View File

@@ -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];