Skip to content
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

how to add multiple in AjaxAdmin layer #481

Open
guanjiawen008 opened this issue Oct 23, 2023 · 1 comment
Open

how to add multiple in AjaxAdmin layer #481

guanjiawen008 opened this issue Oct 23, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@guanjiawen008
Copy link

无法在layer的file中添加input
为multiple的属性
*

  • *Bug description * *

简单的描述下遇到的bug:
无法在layer的file中添加input
为multiple的属性

重现步骤
** repeat step **
1.在AjaxAdmin中添加layer为file的input
2.点击input发现无法批量上传文件

环境
** Django 3.2**

1.Operating System:
Windows

2.Python Version:
python3.8
3.Django Version:
django 3.2
4.SimpleUI Version:
'2023.03.01'

Description

@guanjiawen008 guanjiawen008 added the bug Something isn't working label Oct 23, 2023
@Star-fly-Cheng
Copy link

你可以将simpleui/templates/admin/actions.html中的源代码修改一下,
<input v-else-if="item.type=='file'" type="file" :ref="item.key" :accept="item.accept?item.accept:'*'" :multiple="item.multiple"/>

然后在
'params': [ { 'type': 'file', 'key': 'upload', 'label': 'Report', 'multiple': 'multiple', 'accept': 'application/pdf', }, ]
增加参数

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants