From 040788c793642c3bb2a3ede87fe30fcf3be471bd Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Tue, 24 Dec 2024 17:52:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=89=8B=E6=9C=BA?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E4=B8=8B=EF=BC=8C=E6=9F=A5=E8=AF=A2=E6=A1=86?= =?UTF-8?q?=E8=A2=AB=E6=96=87=E5=AD=97=E9=81=AE=E7=9B=96=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ui/certd-client/src/plugin/fast-crud/index.tsx | 9 +++++++++ packages/ui/certd-client/src/style/antdv4.less | 4 ++++ .../ui/certd-client/src/views/certd/history/crud.tsx | 12 +++++++----- 3 files changed, 20 insertions(+), 5 deletions(-) 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 c2b252c9..8435c693 100644 --- a/packages/ui/certd-client/src/plugin/fast-crud/index.tsx +++ b/packages/ui/certd-client/src/plugin/fast-crud/index.tsx @@ -128,6 +128,15 @@ function install(app: App, options: any = {}) { return { currentPage, pageSize, records: res.records, total: res.total, ...res }; } }, + search: { + formItem: { + wrapperCol: { + style: { + width: "50%" + } + } + } + }, form: { display: "flex", labelCol: { diff --git a/packages/ui/certd-client/src/style/antdv4.less b/packages/ui/certd-client/src/style/antdv4.less index 1478e699..b2ce61d3 100644 --- a/packages/ui/certd-client/src/style/antdv4.less +++ b/packages/ui/certd-client/src/style/antdv4.less @@ -45,4 +45,8 @@ .ant-modal { max-width: calc(100% - 32px) !important ; +} + +.fs-search .ant-row{ + flex-flow: row wrap !important; } \ No newline at end of file diff --git a/packages/ui/certd-client/src/views/certd/history/crud.tsx b/packages/ui/certd-client/src/views/certd/history/crud.tsx index 4c2fbb49..318dfa4d 100644 --- a/packages/ui/certd-client/src/views/certd/history/crud.tsx +++ b/packages/ui/certd-client/src/views/certd/history/crud.tsx @@ -66,7 +66,12 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat formItem: { labelCol: { style: { - width: "120px" + // width: "100px" + } + }, + wrapperCol: { + style: { + width: "50%" } } } @@ -127,10 +132,7 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat title: "流水线名称", type: "text", search: { - show: true, - component: { - name: "a-input" - } + show: true }, column: { width: 300,