提交 8279880c 编写于 作者: D dolymood

feat(scroll-nav-bar): sync txts by labels

上级 61d5f4b5
......@@ -61,6 +61,7 @@
txts: {
type: Array,
default() {
this._defaultTxts = true
/* istanbul ignore next */
return this.labels
}
......@@ -76,6 +77,11 @@
}
},
watch: {
labels(newLabels) {
if (this._defaultTxts) {
this.txts = newLabels
}
},
current(newVal) {
this.active = newVal
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册