From 62df610b24bc0755bac8376a14a404cef5409b34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E8=AF=97=E6=B4=A5?= <2723065175@qq.com> Date: Mon, 5 Feb 2024 08:59:55 +0000 Subject: [PATCH] =?UTF-8?q?!2564=20=E6=96=B0=E5=A2=9E:=E8=A3=A4=E6=9D=86?= =?UTF-8?q?=E7=BB=98=E5=88=B6=E5=8A=9F=E8=83=BD=E6=94=AF=E6=8C=81=E6=8C=89?= =?UTF-8?q?=E6=9C=80=E5=B0=8F=E9=97=B4=E8=B7=9D=E7=94=9F=E6=88=90=E5=AF=B9?= =?UTF-8?q?=E5=BA=94=E6=95=B0=E9=87=8F=E7=9A=84=E8=A3=A4=E6=9D=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Editor/DefaultConfig.ts | 2 + src/UI/Components/Template/KuGanDetail.tsx | 69 +++++++++++++------ src/UI/Components/Template/Template.less | 38 ++++++++-- .../Components/Template/TemplateComponent.tsx | 49 ++++++++++--- .../Components/Template/TemplateInterface.ts | 2 + 5 files changed, 126 insertions(+), 34 deletions(-) diff --git a/src/Editor/DefaultConfig.ts b/src/Editor/DefaultConfig.ts index 5853dcc44..a630c7b35 100644 --- a/src/Editor/DefaultConfig.ts +++ b/src/Editor/DefaultConfig.ts @@ -774,6 +774,8 @@ export const DefaultUpdateInfoOption: IUpdateBoardInfosOption = { Object.freeze(DefaultUpdateInfoOption); export const DefaultKuGanOption: IKuGangDrawOption = { + insertMode: "0", + minSpacing: 50, count: 1, isHor: false, depth: 0, diff --git a/src/UI/Components/Template/KuGanDetail.tsx b/src/UI/Components/Template/KuGanDetail.tsx index c97b66a7d..0fbd5f076 100644 --- a/src/UI/Components/Template/KuGanDetail.tsx +++ b/src/UI/Components/Template/KuGanDetail.tsx @@ -1,10 +1,10 @@ -import { Checkbox, Classes, Label, Spinner } from '@blueprintjs/core'; +import { Checkbox, Classes, Label, Radio, RadioGroup, Spinner } from '@blueprintjs/core'; +import { observable } from 'mobx'; import { observer } from 'mobx-react'; import * as React from 'react'; import { CheckObjectType } from '../../../Common/CheckoutVaildValue'; import { KuGanStore } from '../../Store/KuGanStore'; import { ToasterInput } from '../Toaster'; -import { observable } from 'mobx'; interface IKuGanDetailProps { @@ -32,24 +32,52 @@ export class KuGanDetail extends React.Component { return ; return (
-
-
-
+
option.isDefault = !option.isDefault} />
-
+
-
+