From f23e4c2c1da8e1053695dcd4768352e536069722 Mon Sep 17 00:00:00 2001 From: wangsongsole Date: Tue, 8 Aug 2023 19:54:50 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20usability:=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/UseProductPop/index.jsx | 38 ++++++++++++-------------- 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/src/components/UseProductPop/index.jsx b/src/components/UseProductPop/index.jsx index 018f3c4e..ec04c99b 100644 --- a/src/components/UseProductPop/index.jsx +++ b/src/components/UseProductPop/index.jsx @@ -530,7 +530,24 @@ const UseProductPop = forwardRef((props, ref) => { }} /> - + {model.product_type === 2 ? ( + + { + setModel({ + end_time: val + }) + }} + disabledTime={onDisabledTime} + disabledDate={onDisabledRange} + /> + + ) : null} {}} @@ -633,25 +650,6 @@ const UseProductPop = forwardRef((props, ref) => { /> - {model.product_type === 2 ? ( - - { - setModel({ - end_time: val - }) - }} - disabledTime={onDisabledTime} - disabledDate={onDisabledRange} - /> - - ) : null} -