From 43ab04e521e2a8863c174f76d22c77bf0b3fcbf4 Mon Sep 17 00:00:00 2001 From: ZoeLeeFZ Date: Thu, 7 Jan 2021 16:45:10 +0800 Subject: [PATCH] =?UTF-8?q?!1378=20=E5=8A=9F=E8=83=BD:=20=E7=9F=A9?= =?UTF-8?q?=E5=BD=A2=E8=BD=AC=E5=B1=82=E6=9D=BF=E7=AB=8B=E6=9D=BF,?= =?UTF-8?q?=E5=91=BD=E4=BB=A4R2B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Add-on/twoD2threeD/Modals/R2b2.tsx | 121 ++++++++ src/Add-on/twoD2threeD/Modals/Rec2Br.less | 27 +- src/Add-on/twoD2threeD/R2B2Store.ts | 65 +++++ src/Add-on/twoD2threeD/R2BCommon.tsx | 38 ++- src/Add-on/twoD2threeD/R2bInterface.ts | 16 +- src/Add-on/twoD2threeD/Rect2Board.ts | 275 ++++++++++++++++++ src/Common/CheckoutVaildValue.ts | 6 + src/Common/CommandNames.ts | 1 + src/Editor/CommandRegister.ts | 3 + src/Editor/DefaultConfig.ts | 16 +- src/UI/Components/Board/BoardModal.tsx | 1 + src/UI/Components/CommandPanel/CommandList.ts | 10 + src/UI/Components/TopToolBar/TopToolBar.tsx | 1 + src/UI/IconEnum.ts | 1 + 14 files changed, 574 insertions(+), 7 deletions(-) create mode 100644 src/Add-on/twoD2threeD/Modals/R2b2.tsx create mode 100644 src/Add-on/twoD2threeD/R2B2Store.ts create mode 100644 src/Add-on/twoD2threeD/Rect2Board.ts diff --git a/src/Add-on/twoD2threeD/Modals/R2b2.tsx b/src/Add-on/twoD2threeD/Modals/R2b2.tsx new file mode 100644 index 000000000..b949a00e0 --- /dev/null +++ b/src/Add-on/twoD2threeD/Modals/R2b2.tsx @@ -0,0 +1,121 @@ +import { Button, Card, H5, Intent } from '@blueprintjs/core'; +import { observer } from 'mobx-react'; +import React, { Component } from 'react'; +import { app } from '../../../ApplicationServices/Application'; +import { CheckObjectType } from '../../../Common/CheckoutVaildValue'; +import { Input5Or4Component, Notes, SetBoardDataBlock } from '../../../UI/Components/Board/BoardCommon'; +import { BoardModalType } from '../../../UI/Components/Board/BoardModal'; +import { CommonModal } from '../../../UI/Components/Modal/ModalContainer'; +import { ModalState } from '../../../UI/Components/Modal/ModalInterface'; +import { AppToaster } from '../../../UI/Components/Toaster'; +import { R2B2Store } from '../R2B2Store'; +import { SelectDrillType } from '../R2BCommon'; + +const CabPars = [ + ["depthExpr", "柜深"], ["maxThickness", "最大板厚"], +]; +const ShrinkPars = [ + ["vertialShrink", "立板"], ["layerShrink", "层板"], +]; + +@observer +export class R2b2Panel extends Component<{ store: R2B2Store; }> +{ + render() + { + const { store } = this.props; + return ( + +