diff --git a/src/Add-on/ShareView/components/ViewStyle.tsx b/src/Add-on/ShareView/components/ViewStyle.tsx index 8e8a07343..fddb82ad1 100644 --- a/src/Add-on/ShareView/components/ViewStyle.tsx +++ b/src/Add-on/ShareView/components/ViewStyle.tsx @@ -1,4 +1,5 @@ import React, { forwardRef, useEffect, useRef, useState } from "react"; +import { CommandNames } from "../../../Common/CommandNames"; import { commandMachine } from "../../../Editor/CommandMachine"; import { RenderType } from "../../../GraphicsSystem/RenderType"; import { ViewStyleTypes } from "../ShareViewRules"; @@ -15,6 +16,8 @@ const ViewStyle: React.FC = forwardRef((props) => const [visible, setVisible] = useState(false); const [selected, setSelected] = useState('概念'); const selectDivRef = useRef(); + /** 纹路 */ + const [selectLines, setSelectLines] = useState(false); const hideSelect = (e: Event) => { @@ -86,6 +89,18 @@ const ViewStyle: React.FC = forwardRef((props) => >{item.title} ); })} +
  • + { + e.stopPropagation(); + ForbiddenToaster(async () => + { + await commandMachine.ExecCommand(CommandNames.SwitchLines); + setSelectLines(!selectLines); + }); + }} + >纹路
  • );