Add popup renderer

This commit is contained in:
2022-03-22 17:31:49 +08:00
parent 93e1a8d3ef
commit 90398b593e
5 changed files with 207 additions and 3 deletions
+7 -1
View File
@@ -68,7 +68,13 @@ class CommandBar extends Component<ICommandBarProps & IMixinSettingProps & IMixi
{this.getRenderButton({ iconName: "Camera", i18NKey: "Command.Bar.Camera.Info" })}
</div>
<div>
{this.getRenderButton({ iconName: "Settings", i18NKey: "Command.Bar.Setting.Info" })}
{this.getRenderButton({
iconName: "Settings",
i18NKey: "Command.Bar.Setting.Info",
click: () => {
this.props.status ? this.props.status.popup.showPopup() : undefined;
}
})}
</div>
</Theme>
}