We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
react-vant
react-vant-icons
3.3
No response
Dialog.confirm({ footer: <></>, closeable: true, title: '提示', message: ( <> <Form onFinish={async (values) => { const sendData: { invoiceLineId: string | undefined; inventoryId: any; containerId: any; quantity: any; }[] = []; values.users.forEach( (item: { id: string | number; containerId: any }) => { const quantity = values.users[item.id]?.quantity; sendData.push({ invoiceLineId: id, inventoryId: item.id, containerId: item.containerId, quantity: quantity, }); } ); console.log(Dialog.onClose()); const res = await ConfirmAllocated(sendData); debugger; if (res) { getSelectedList(); Toast.success('分配成功'); } }} footer={ <div style={{ margin: '16px 16px 0' }}> <Button round nativeType="submit" type="warning" block> 提交 </Button> </div> } > <Cell.Group> <Form.List name="users" initialValue={unSelectHasData}> {() => ( <> {unSelectHasData.map((field, idx) => { return ( <div className="form-list-item" key={field.id}> <h6> <Space block align="center" justify="between"> <strong>物料名称:{field.materialName}</strong> </Space> </h6> <div className="form-list-item__control"> <Form.Item label="分配数量" name={[field.id, 'quantity']} rules={[]} > <Input placeholder="" /> </Form.Item> </div> </div> ); })} </> )} </Form.List> </Cell.Group> </Form> </> ), });
我想在表单提交后,关闭弹窗。
The text was updated successfully, but these errors were encountered:
建议使用组建调用形式
Sorry, something went wrong.
No branches or pull requests
Which React Vant packages are impacted?
react-vant
(React Vant core)react-vant-icons
(React Vant Icon)What version of React Vant are you using?
3.3
Reproduce live demo(codesandebox or stackblitz)?
No response
Descripition
The text was updated successfully, but these errors were encountered: