From 25b98af2e1ef8e9fce1c7f5a0294f544e0001bff Mon Sep 17 00:00:00 2001 From: "ext.pangzhaoqun1" Date: Fri, 1 Apr 2022 11:29:39 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E5=BC=B9=E7=AA=97=E6=AF=94=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/steps/table/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/steps/table/index.tsx b/src/steps/table/index.tsx index 6036507..b70f483 100644 --- a/src/steps/table/index.tsx +++ b/src/steps/table/index.tsx @@ -222,11 +222,13 @@ export default class TableStepComponent extends TableStep { title, visible, children, - onClose + onClose, + modalWidth, } = props return ( Date: Fri, 1 Apr 2022 14:37:25 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BC=B9=E7=AA=97?= =?UTF-8?q?=E6=AF=94=E4=BE=8B=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/steps/table/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/steps/table/index.tsx b/src/steps/table/index.tsx index b70f483..7b074f2 100644 --- a/src/steps/table/index.tsx +++ b/src/steps/table/index.tsx @@ -223,12 +223,12 @@ export default class TableStepComponent extends TableStep { visible, children, onClose, - modalWidth, + modalWidthRatio, } = props return ( Date: Fri, 1 Apr 2022 15:53:59 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=E5=BC=B9=E7=AA=97=E5=AE=BD=E5=BA=A6?= =?UTF-8?q?=E6=AF=94=E4=BE=8B=E5=90=8C=E6=97=B6=E5=AD=98=E5=9C=A8=E4=BC=98?= =?UTF-8?q?=E5=85=88=E5=B1=95=E7=A4=BA=E5=AE=BD=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/steps/table/index.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/steps/table/index.tsx b/src/steps/table/index.tsx index 7b074f2..80ea8f3 100644 --- a/src/steps/table/index.tsx +++ b/src/steps/table/index.tsx @@ -224,11 +224,13 @@ export default class TableStepComponent extends TableStep { children, onClose, modalWidthRatio, + modalWidth } = props - + console.log(modalWidthRatio, 'ratio') + console.log(modalWidth, 'width') return ( Date: Fri, 1 Apr 2022 17:01:56 +0800 Subject: [PATCH 4/5] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/steps/table/index.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/steps/table/index.tsx b/src/steps/table/index.tsx index 80ea8f3..bd52b33 100644 --- a/src/steps/table/index.tsx +++ b/src/steps/table/index.tsx @@ -226,8 +226,7 @@ export default class TableStepComponent extends TableStep { modalWidthRatio, modalWidth } = props - console.log(modalWidthRatio, 'ratio') - console.log(modalWidth, 'width') + return ( Date: Thu, 14 Apr 2022 17:14:06 +0800 Subject: [PATCH 5/5] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BC=B9=E7=AA=97?= =?UTF-8?q?=E5=AE=BD=E5=BA=A6=E6=AF=94=E4=BE=8B=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/steps/table/index.tsx | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/steps/table/index.tsx b/src/steps/table/index.tsx index bd52b33..b85be60 100644 --- a/src/steps/table/index.tsx +++ b/src/steps/table/index.tsx @@ -223,13 +223,23 @@ export default class TableStepComponent extends TableStep { visible, children, onClose, - modalWidthRatio, - modalWidth + modalWidthMode, + modalWidthValue } = props + + let modelWitdh : string | undefined + if(modalWidthMode === 'none') { + modelWitdh = undefined + } else if(modalWidthMode === 'percentage') { + modelWitdh = modalWidthValue + '%' + } else if(modalWidthMode === 'pixel') { + modelWitdh = modalWidthValue + 'px' + } + return (