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
⚠️ IMPORTANT ⚠️ Please check the following list before proceeding. If you ignore this issue template, your issue will be directly closed.
当upload的值在两个以上。预期是该行的删除就删除该行的数据,但是目前使用previewModal会将列表清空。
定位问题是在没有显式绑定 handleFn 的 key值。显式绑定即可,等一下会提交pr
<template> <Alert message="bug report" /> <BasicForm @register="registerValiate" class="my-5" /> </template> <script setup lang="ts"> import { Alert } from 'ant-design-vue'; import { BasicForm, FormSchema, useForm } from '@/components/Form'; import { useMessage } from '@/hooks/web/useMessage'; import { uploadApi } from '@/api/sys/upload'; const { createMessage } = useMessage(); const schemasValiate: FormSchema[] = [ { field: 'field1', component: 'Upload', label: '字段1', defaultValue:["https://avatars.githubusercontent.com/u/59329360?v=4","http://localhost:5173/src/assets/images/logo.png"], componentProps: { api: uploadApi, maxNumber:3 }, }, ]; const [registerValiate, { getFieldsValue: getFieldsValueValiate, validate }] = useForm({ labelWidth: 160, schemas: schemasValiate, actionColOptions: { span: 18, }, submitFunc: () => { return new Promise((resolve) => { validate() .then(() => { resolve(); console.log(getFieldsValueValiate()); createMessage.success(`请到控制台查看结果`); }) .catch(() => { createMessage.error(`请输入必填项`); }); }); }, }); </script>
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Describe the bug
当upload的值在两个以上。预期是该行的删除就删除该行的数据,但是目前使用previewModal会将列表清空。
定位问题是在没有显式绑定 handleFn 的 key值。显式绑定即可,等一下会提交pr
Reproduction
The text was updated successfully, but these errors were encountered: