From f7b62373553c054f3b085378e28c468b23ade1a9 Mon Sep 17 00:00:00 2001 From: whyour Date: Tue, 6 Sep 2022 00:40:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=B0=E5=BB=BA=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E8=A7=86=E5=9B=BE=E4=BA=A4=E4=BA=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/crontab/index.less | 8 ++++++++ src/pages/crontab/viewCreateModal.tsx | 17 ++++++++--------- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/src/pages/crontab/index.less b/src/pages/crontab/index.less index 9dfa9cbb..0fc9239a 100644 --- a/src/pages/crontab/index.less +++ b/src/pages/crontab/index.less @@ -161,6 +161,14 @@ } } +.view-create-modal-sorts { + display: flex; + + .ant-space-item:nth-child(2) { + flex: 1; + } +} + tr.drop-over-downward td { border-bottom: 2px dashed #1890ff; } diff --git a/src/pages/crontab/viewCreateModal.tsx b/src/pages/crontab/viewCreateModal.tsx index ae95e9d1..8fea2c65 100644 --- a/src/pages/crontab/viewCreateModal.tsx +++ b/src/pages/crontab/viewCreateModal.tsx @@ -101,9 +101,9 @@ const ViewCreateModal = ({ ); - const propertyElement = (props: any) => { + const propertyElement = (props: any, style: React.CSSProperties = {}) => { return ( - {props.map((x) => ( {x.name} @@ -114,7 +114,7 @@ const ViewCreateModal = ({ }; const typeElement = ( - {SORTTYPES.map((x) => ( {x.name} @@ -170,6 +170,7 @@ const ViewCreateModal = ({ label={index === 0 ? '筛选条件' : ''} key={key} style={{ marginBottom: 0 }} + required > - {propertyElement(PROPERTIES)} + {propertyElement(PROPERTIES, { width: 120 })} - + - {propertyElement(PROPERTIES)} + {propertyElement(PROPERTIES, { width: 240 })} {typeElement} - {index !== 0 && ( - remove(name)} /> - )} + remove(name)} /> ))}