From 3fb529441703b1aa7387d8da0dfcd0fe66fdb29b Mon Sep 17 00:00:00 2001 From: ZoeLeeFZ Date: Fri, 11 Oct 2019 08:58:17 +0800 Subject: [PATCH] =?UTF-8?q?!527=20#I131CL=20=E4=BC=98=E5=8C=96=E6=AD=A3?= =?UTF-8?q?=E9=85=92=E6=A0=BCUI=E8=A1=8C=E4=B8=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/UI/Components/Board/WineRack.tsx | 173 ++++++++++++++------------- 1 file changed, 91 insertions(+), 82 deletions(-) diff --git a/src/UI/Components/Board/WineRack.tsx b/src/UI/Components/Board/WineRack.tsx index 6fe59592d..78f01b4c5 100644 --- a/src/UI/Components/Board/WineRack.tsx +++ b/src/UI/Components/Board/WineRack.tsx @@ -71,7 +71,7 @@ export class WineRackModal extends React.Component<{ store?: WineRackStore }, {} } if (isByCountArray) { - return !m_Option.isLock && fullByWidth; + return m_Option.type !== EWineRackType.Upright && (!m_Option.isLock && fullByWidth); } return false; case "widthCount": @@ -248,6 +248,8 @@ export class WineRackModal extends React.Component<{ store?: WineRackStore }, {} onChange={(e) => { store.m_Option.type = parseInt(e.currentTarget.value); + if (store.m_Option.type === EWineRackType.Upright && store.m_Option.arrayType === EWRackArrayType.Fixed) + store.m_Option.arrayType = EWRackArrayType.ByWidth; }} > @@ -263,88 +265,95 @@ export class WineRackModal extends React.Component<{ store?: WineRackStore }, {} > - + { + store.m_Option.type === EWineRackType.Oblique && + } -
铺满方式
-
- - { - store.m_Option.fullType = parseInt(e.currentTarget.value); - }} - > - - - - -
- - { - store.m_Option.fullDir = parseInt(e.currentTarget.value); - }} - > - - - - - { - m_Option.isFull = !m_Option.isFull; - }} /> -
-
-
补板
- -
- - { - m_Option.isDrawLy = !m_Option.isDrawLy; - }} /> - - { - m_Option.isDrawVer = !m_Option.isDrawVer; - }} /> -
+ { + store.m_Option.type === EWineRackType.Oblique && + <> +
铺满方式
+
+ + { + store.m_Option.fullType = parseInt(e.currentTarget.value); + }} + > + + + + +
+ + { + store.m_Option.fullDir = parseInt(e.currentTarget.value); + }} + > + + + + + { + m_Option.isFull = !m_Option.isFull; + }} /> +
+
+
补板
+ +
+ + { + m_Option.isDrawLy = !m_Option.isDrawLy; + }} /> + + { + m_Option.isDrawVer = !m_Option.isDrawVer; + }} /> +
+ + }