Skip to content

:custom-action方法无法正常触发 #468

New issue

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

Open
GaviXi opened this issue Apr 18, 2025 · 1 comment
Open

:custom-action方法无法正常触发 #468

GaviXi opened this issue Apr 18, 2025 · 1 comment

Comments

@GaviXi
Copy link

GaviXi commented Apr 18, 2025






代码如上,custom-action属性绑定的代码未被触发

@GaviXi
Copy link
Author

GaviXi commented Apr 18, 2025

<Upload :auto-upload="true" :custom-action="customUpload" > <div class="chat-upload-cover"> <Icons name="chat-upload" width="2rem" height="2rem" /> </div> </Upload>

const customUpload = (file: any, self: any) => { return new Promise<any>((resolve) => { console.log('httpRequest', file); // Here you would typically make an API call // For now, just resolve the promise with the file resolve(file); }); };

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant