This commit is contained in:
2025-09-14 00:21:54 +08:00
commit d40b3bbd62
766 changed files with 36275 additions and 0 deletions

View File

@@ -0,0 +1,50 @@
Page({
onShareAppMessage() {
return {
title: 'form',
path: 'page/component/pages/form/form',
};
},
data: {
pickerHidden: true,
chosen: 'YYYY-MM-DD',
switch: true,
},
pickerConfirm(e) {
this.setData({
pickerHidden: true,
});
this.setData({
chosen: e.detail.value,
});
},
pickerCancel() {
this.setData({
pickerHidden: true,
});
},
pickerShow() {
this.setData({
pickerHidden: false,
});
},
formSubmit(e) {
xhs.showModal({
title: '提交成功',
content: '携带的数据为:' + JSON.stringify(e.detail.value)
});
},
formReset(e) {
console.log('form发生了reset事件携带数据为', e.detail.value);
this.setData({
chosen: 'YYYY-MM-DD',
switch: true,
});
},
});