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: {
|
rowHandle: {
|
||||||
|
fixed: "right",
|
||||||
buttons: {
|
buttons: {
|
||||||
view: { type: "link", text: null, icon: "ion:eye-outline" },
|
view: { type: "link", text: null, icon: "ion:eye-outline" },
|
||||||
copy: { show: true, type: "link", text: null, icon: "ion:copy-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: {
|
columns: {
|
||||||
id: {
|
id: {
|
||||||
title: "ID",
|
title: "ID",
|
||||||
|
@ -141,11 +144,28 @@ export default function ({ crudExpose }: CreateCrudOptionsProps): CreateCrudOpti
|
||||||
component: {
|
component: {
|
||||||
uploader: {
|
uploader: {
|
||||||
type: "form"
|
type: "form"
|
||||||
|
},
|
||||||
|
on: {
|
||||||
|
success(ctx) {
|
||||||
|
// 上传成功后的回调
|
||||||
|
console.log("success", ctx);
|
||||||
|
ctx.form.avatarSize = ctx.$event.file.size;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
helper: "就是照片墙limit=1的效果"
|
helper: "就是照片墙limit=1的效果"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
avatarSize: {
|
||||||
|
title: "头像文件大小",
|
||||||
|
type: "number",
|
||||||
|
form: {
|
||||||
|
component: {
|
||||||
|
disabled: true
|
||||||
|
},
|
||||||
|
helper: "左边头像上传成功后,会自动填充文件大小"
|
||||||
|
}
|
||||||
|
},
|
||||||
cropper: {
|
cropper: {
|
||||||
title: "裁剪",
|
title: "裁剪",
|
||||||
type: "cropper-uploader",
|
type: "cropper-uploader",
|
||||||
|
|
Loading…
Reference in New Issue