mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-05 19:41:45 +08:00
22 lines
355 B
JavaScript
22 lines
355 B
JavaScript
import Page from '../../common/page';
|
|
|
|
Page({
|
|
data: {
|
|
radio1: '1',
|
|
radio2: '2',
|
|
radio3: '1'
|
|
},
|
|
|
|
onChange(event) {
|
|
const { key } = event.currentTarget.dataset;
|
|
this.setData({ [key]: event.detail });
|
|
},
|
|
|
|
onClick(event) {
|
|
const { value } = event.currentTarget.dataset;
|
|
this.setData({
|
|
radio3: value
|
|
});
|
|
}
|
|
});
|