修改自定义上传预览表单事件绑定

Signed-off-by: 码龍 <695798354@qq.com>
pull/423/head
码龍 2022-11-29 06:01:09 +00:00 committed by Gitee
parent eaa1832852
commit c952991d46
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 3 additions and 0 deletions

View File

@ -370,6 +370,9 @@ define(['jquery', 'bootstrap', 'dropzone', 'template'], function ($, undefined,
var data = {url: j, fullurl: Fast.api.cdnurl(j), data: $(that).data(), key: i, index: i, value: value, row: value, suffix: suffix};
var html = tpl ? Template(tpl, data) : Template.render(Upload.config.previewtpl, data);
$("#" + preview_id).append(html);
require(['form'], function (Form) {
Form.api.bindevent($("#" + preview_id));
});
});
refresh($("#" + preview_id).data("name"));
});