mirror of https://github.com/certd/certd
🔱: [client] sync upgrade with 2 commits [trident-sync]
fix: 修复antdv 文件上传 success事件无效的bugclient_sync
parent
d0c4dfca97
commit
6e8b0eeca9
|
@ -60,6 +60,7 @@ function install(app: any, options: any = {}) {
|
|||
}
|
||||
},
|
||||
rowHandle: {
|
||||
fixed: "right",
|
||||
buttons: {
|
||||
view: { type: "link", text: null, icon: "ion:eye-outline" },
|
||||
copy: { show: true, type: "link", text: null, icon: "ion:copy-outline" },
|
||||
|
|
|
@ -37,6 +37,9 @@ export default function ({ crudExpose }: CreateCrudOptionsProps): CreateCrudOpti
|
|||
}
|
||||
}
|
||||
},
|
||||
table: {
|
||||
scroll: { x: 2000 }
|
||||
},
|
||||
columns: {
|
||||
id: {
|
||||
title: "ID",
|
||||
|
@ -141,11 +144,28 @@ export default function ({ crudExpose }: CreateCrudOptionsProps): CreateCrudOpti
|
|||
component: {
|
||||
uploader: {
|
||||
type: "form"
|
||||
},
|
||||
on: {
|
||||
success(ctx) {
|
||||
// 上传成功后的回调
|
||||
console.log("success", ctx);
|
||||
ctx.form.avatarSize = ctx.$event.file.size;
|
||||
}
|
||||
}
|
||||
},
|
||||
helper: "就是照片墙limit=1的效果"
|
||||
}
|
||||
},
|
||||
avatarSize: {
|
||||
title: "头像文件大小",
|
||||
type: "number",
|
||||
form: {
|
||||
component: {
|
||||
disabled: true
|
||||
},
|
||||
helper: "左边头像上传成功后,会自动填充文件大小"
|
||||
}
|
||||
},
|
||||
cropper: {
|
||||
title: "裁剪",
|
||||
type: "cropper-uploader",
|
||||
|
|
Loading…
Reference in New Issue