mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
20 lines
302 B
JavaScript
20 lines
302 B
JavaScript
import Page from '../../common/page';
|
|
import Toast from '../../dist/toast/toast';
|
|
|
|
Page({
|
|
data: {
|
|
value: 1
|
|
},
|
|
|
|
onChange(event) {
|
|
Toast.loading({
|
|
forbidClick: true
|
|
});
|
|
|
|
setTimeout(() => {
|
|
Toast.clear();
|
|
this.setData({ value: event.detail });
|
|
}, 500);
|
|
}
|
|
});
|