mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
40 lines
586 B
JavaScript
40 lines
586 B
JavaScript
Component({
|
|
externalClasses: 'class',
|
|
|
|
properties: {
|
|
scroll: {
|
|
type: Boolean,
|
|
value: false
|
|
},
|
|
fixed: {
|
|
type: Boolean,
|
|
value: false
|
|
},
|
|
height: {
|
|
type: Number,
|
|
value: 0
|
|
},
|
|
list: {
|
|
type: Array,
|
|
value: []
|
|
},
|
|
selectedId: {
|
|
type: [String, Number],
|
|
value: ''
|
|
}
|
|
},
|
|
|
|
methods: {
|
|
_handleZanTabChange(e) {
|
|
const selectedId = e.currentTarget.dataset.itemId;
|
|
|
|
this.setData({
|
|
selectedId
|
|
});
|
|
|
|
|
|
this.triggerEvent('tabchange', selectedId);
|
|
}
|
|
}
|
|
});
|