diff --git a/packages/ui/certd-client/src/plugin/fast-crud/index.tsx b/packages/ui/certd-client/src/plugin/fast-crud/index.tsx index cfba16536..24d05e90b 100644 --- a/packages/ui/certd-client/src/plugin/fast-crud/index.tsx +++ b/packages/ui/certd-client/src/plugin/fast-crud/index.tsx @@ -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" }, diff --git a/packages/ui/certd-client/src/views/crud/component/uploader/form/crud.tsx b/packages/ui/certd-client/src/views/crud/component/uploader/form/crud.tsx index b592dc022..f477097b4 100644 --- a/packages/ui/certd-client/src/views/crud/component/uploader/form/crud.tsx +++ b/packages/ui/certd-client/src/views/crud/component/uploader/form/crud.tsx @@ -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",