From f62f0b440d6a8005672ab99d190ecfc12331646e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BF=E8=BE=89?= Date: Tue, 19 Nov 2024 15:00:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0filelist=E7=9A=84crud?= =?UTF-8?q?=E4=B8=AD=E5=AF=B9=E6=96=87=E4=BB=B6=E9=80=89=E6=8B=A9=E5=99=A8?= =?UTF-8?q?=E7=9A=84=E6=B5=8B=E8=AF=95=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/views/system/fileList/crud.tsx | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/web/src/views/system/fileList/crud.tsx b/web/src/views/system/fileList/crud.tsx index 4a77c35..a9ffcb7 100644 --- a/web/src/views/system/fileList/crud.tsx +++ b/web/src/views/system/fileList/crud.tsx @@ -10,6 +10,8 @@ import { CreateCrudOptionsRet, dict } from '@fast-crud/fast-crud'; +import fileSelector from '/@/components/fileSelector/index.vue'; +import { shallowRef } from 'vue'; export const createCrudOptions = function ({ crudExpose, context }: CreateCrudOptionsProps): CreateCrudOptionsRet { const pageRequest = async (query: UserPageQuery) => { @@ -31,7 +33,7 @@ export const createCrudOptions = function ({ crudExpose, context }: CreateCrudOp buttons: { add: { show: true, - click: () => context.openAddHandle?.() + // click: () => context.openAddHandle?.() }, }, }, @@ -200,7 +202,25 @@ export const createCrudOptions = function ({ crudExpose, context }: CreateCrudOp search: { show: true } - } + }, + // fileselectortest: { + // title: '文件选择器测试', + // type: 'file-selector', + // width: 200, + // form: { + // component: { + // name: shallowRef(fileSelector), + // vModel: 'modelValue', + // tabsShow: 0b0100, + // itemSize: 100, + // multiple: false, + // selectable: true, + // showInput: true, + // inputType: 'video', + // valueKey: 'url', + // } + // } + // } }, }, };