20 lines
429 B
JavaScript
20 lines
429 B
JavaScript
Component({
|
|
data: {
|
|
value: 'label_1',
|
|
list: [
|
|
{ value: 'label_1', icon: 'home', ariaLabel: '首页' },
|
|
{ value: 'label_2', icon: 'app', ariaLabel: '软件' },
|
|
{ value: 'label_3', icon: 'chat', ariaLabel: '聊天' },
|
|
{ value: 'label_4', icon: 'user', ariaLabel: '我的' },
|
|
],
|
|
},
|
|
|
|
methods: {
|
|
onChange(e) {
|
|
this.setData({
|
|
value: e.detail.value,
|
|
});
|
|
},
|
|
},
|
|
});
|