mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
15 lines
233 B
JavaScript
15 lines
233 B
JavaScript
import Page from '../../common/page';
|
|
|
|
Page({
|
|
data: {
|
|
active: 0,
|
|
active2: 'home',
|
|
active3: 0
|
|
},
|
|
|
|
onChange(event) {
|
|
const { key } = event.currentTarget.dataset;
|
|
this.setData({ [key]: event.detail });
|
|
}
|
|
});
|