Add behavior picker component

This commit is contained in:
2022-04-02 19:25:57 +08:00
parent cfbb52afa5
commit 555648dbb0
9 changed files with 234 additions and 31 deletions
@@ -8,6 +8,7 @@ import { PickerList, IDisplayItem, getObjectDisplayInfo, IDisplayInfo } from "..
import { Localization } from "@Component/Localization/Localization";
import { Icon } from "@fluentui/react";
import { CtrlObject } from "@Model/CtrlObject";
import { Behavior } from "@Model/Behavior";
import "./ObjectPicker.scss";
type IObjectType = Label | Group | Range | CtrlObject;
@@ -80,6 +81,7 @@ class ObjectPicker extends Component<IObjectPickerProps & IMixinStatusProps, IOb
target={this.pickerTarget}
objectList={this.getAllOption()}
clickObjectItems={((item) => {
if (item instanceof Behavior) return;
if (this.props.valueChange) {
this.props.valueChange(item);
}