首页 > 解决方案 > 在反应中卸载织物面板(SPFX)

问题描述

React 开发者屏幕审批面板需要移除吗? 那么我需要从 Dom 中删除吗?如果是这样,我该怎么做?我可以控制 SharePoint 中的 SPFX 扩展。面板工作正常,道具和状态都很好。当我单击关闭时,面板关闭,但它不会丢弃对象 - 这意味着背景中的屏幕仍然是灰色的。

我使用了 react 开发者工具,并且经历了所有的状态,但我找不到这样的“从 DOM 中删除组件”的工具。我需要对象完全运行。

<Panel
headerText='Case Approval'
type={PanelType.medium}
onRenderFooterContent={this._onRenderFooterContent}
isOpen={this.state.showPanel}
isHiddenOnDismiss={this.state.hidden}
onDismiss={this._hidePanel}
focusTrapZoneProps={{}}
hasCloseButton = {this.state.hasCloseButton}>

标签: reactjstypescriptspfxoffice-fabric

解决方案


推荐阅读