From 896d995b0592da34eebc7151abba9fbf07b3ce46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=AD=90=E6=B6=B5?= <2067519648@qq.com> Date: Thu, 22 Aug 2024 06:58:37 +0000 Subject: [PATCH] =?UTF-8?q?!3005=20=E4=BF=AE=E5=A4=8D:=20=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E5=88=86=E4=BA=AB=E5=9B=BE=E8=AE=BE=E7=BD=AE=E9=87=8C?= =?UTF-8?q?=E9=A2=9C=E8=89=B2=E9=80=89=E6=8B=A9=E5=99=A8=E4=B8=AD=E5=A4=9A?= =?UTF-8?q?=E4=BD=99=E7=9A=84=E9=80=89=E9=A1=B9(256)=E5=B9=B6=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E7=82=B9=E5=87=BB=E4=B8=8E=E6=B6=88=E5=A4=B1=E7=9A=84?= =?UTF-8?q?=E5=86=B2=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Add-on/ShareView/components/ColorSelect.tsx | 2 +- .../ShareView/components/ShareBoardInfoConfiguration.tsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Add-on/ShareView/components/ColorSelect.tsx b/src/Add-on/ShareView/components/ColorSelect.tsx index 75804db9e..d107aad32 100644 --- a/src/Add-on/ShareView/components/ColorSelect.tsx +++ b/src/Add-on/ShareView/components/ColorSelect.tsx @@ -114,7 +114,7 @@ export function ColorSelect({ value, onChange, options }: SelectProps) if (index === options.length - 1) return; return (
  • + onMouseDown={e => { e.stopPropagation(); selectOption(index); diff --git a/src/Add-on/ShareView/components/ShareBoardInfoConfiguration.tsx b/src/Add-on/ShareView/components/ShareBoardInfoConfiguration.tsx index a4c3f2ea0..9d8cdf01e 100644 --- a/src/Add-on/ShareView/components/ShareBoardInfoConfiguration.tsx +++ b/src/Add-on/ShareView/components/ShareBoardInfoConfiguration.tsx @@ -46,6 +46,7 @@ export class ShareBoardInfoConfiguration extends React.Component<{ store: ShareV render() { const option = this.props.store.m_Option; + const ColorList = ColorPalette.slice(0, 257); // 限制在[0, 255] return (
    @@ -104,7 +105,7 @@ export class ShareBoardInfoConfiguration extends React.Component<{ store: ShareV
    真实带线框颜色: ({ value: rgb, label: index }))} + options={JSON.parse(JSON.stringify(ColorList)).map((rgb, index) => ({ value: rgb, label: index }))} value={option.Physical2EdgeColor} onChange={(value) => {