From 334f763ab5c7cb9c10527ca2f490e3ce2cd8c268 Mon Sep 17 00:00:00 2001 From: liurui Date: Sun, 2 Nov 2025 13:26:05 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95=E5=9C=A8=E7=BA=BF=E9=98=85?= =?UTF-8?q?=E8=AF=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/version-build | 2 +- .../crud_book/CrudBookModelViewSet/crud.tsx | 43 +++++++++++++------ 2 files changed, 31 insertions(+), 14 deletions(-) diff --git a/public/version-build b/public/version-build index d341b585..27b45084 100644 --- a/public/version-build +++ b/public/version-build @@ -1 +1 @@ -3.2.0.1761459758865 \ No newline at end of file +3.2.0.1762059895763 \ No newline at end of file diff --git a/src/views/crud_book/CrudBookModelViewSet/crud.tsx b/src/views/crud_book/CrudBookModelViewSet/crud.tsx index 471cf8e5..7a671ae1 100644 --- a/src/views/crud_book/CrudBookModelViewSet/crud.tsx +++ b/src/views/crud_book/CrudBookModelViewSet/crud.tsx @@ -256,7 +256,7 @@ export default function ({ crudExpose }: { crudExpose: CrudExpose }): CreateCrud }, }, - location: { + file: { title: '电子书', form: { component: { @@ -294,19 +294,36 @@ export default function ({ crudExpose }: { crudExpose: CrudExpose }): CreateCrud }}>未上传; } } + }, + viewForm: { + component: { height: 100, width: 100 } } - // column: { - // component: { - // name: "fs-icon", - // style: "font-size:18px", - // previewTeleported: true, - // // @ts-ignore - // previewMask: () =>
{}
- // } - // }, - // viewForm: { - // component: { height: 100, width: 100 } - // } + }, + file_type: { + title: '文件类型', + type: 'input', + search: { show: false }, + column: { + minWidth: 80, + sortable: false, + }, + form: { + show: false // 文件类型自动获取,不在表单中显示 + } + }, + location: { + title: '存放位置', + type: 'input', + search: { show: false }, + column: { + minWidth: 120, + sortable: false, + }, + form: { + component: { + placeholder: '请输入图书存放位置', + }, + }, }, }, },