You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
现在是我在searchFormSchema 搜索表单内自定义了一个点击时间的事件,然后会触发一个事件,现在是我用render重新绘制了这个组件,想点击了之后立马触发查询,而不是要手动去点查询,请问这个要怎么实现呢,有没有好的思路,看来看去没看懂,用这个的写法也没效果
export const searchFormSchema: FormSchema[] = [
{
field: 'searchCreationTime',
label: t('menuPage.common.creationTime'),
component: 'Input',
colProps: { span: 8 },
render({ model }) {
return h(DateRangePicker, {
startCreateTime: model['startCreateTime'],
endCreateTime: model['endCreateTime'],
onSetValue(e) {
model['startCreateTime'] = e['startCreateTime'];
model['endCreateTime'] = e['endCreateTime'];
},
});
},
componentProps: ({ formActionType }) => {
return {
onChange: () => {
nextTick(() => {
formActionType.submit();
});
},
onSetValue: () => {
nextTick(() => {
formActionType.submit();
});
},
};
},
},
];
Beta Was this translation helpful? Give feedback.
All reactions