Compare commits
2 Commits
850eea254c
...
ffdb796e8f
Author | SHA1 | Date | |
---|---|---|---|
ffdb796e8f | |||
43ab6cb03f |
8
source/Behavior/Behavior.ts
Normal file
8
source/Behavior/Behavior.ts
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
import { BehaviorRecorder, IAnyBehaviorRecorder } from "@Model/Behavior";
|
||||||
|
import { Template } from "./Template";
|
||||||
|
|
||||||
|
const AllBehaviors: IAnyBehaviorRecorder[] = [
|
||||||
|
new BehaviorRecorder(Template)
|
||||||
|
]
|
||||||
|
|
||||||
|
export { AllBehaviors };
|
20
source/Behavior/Template.ts
Normal file
20
source/Behavior/Template.ts
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
import { Behavior } from "@Model/Behavior";
|
||||||
|
|
||||||
|
type ITemplateBehaviorParameter = {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
type ITemplateBehaviorEvent = {}
|
||||||
|
|
||||||
|
class Template extends Behavior<ITemplateBehaviorParameter, ITemplateBehaviorEvent> {
|
||||||
|
|
||||||
|
public override behaviorId: string = "Template";
|
||||||
|
|
||||||
|
public override behaviorName: string = "Behavior.Template.Title";
|
||||||
|
|
||||||
|
public override iconName: string = "Running";
|
||||||
|
|
||||||
|
public override describe: string = "Behavior.Template.Intro";
|
||||||
|
}
|
||||||
|
|
||||||
|
export { Template };
|
@ -52,13 +52,13 @@ class CommandBar extends Component<ICommandBarProps & IMixinSettingProps & IMixi
|
|||||||
}
|
}
|
||||||
})}
|
})}
|
||||||
{this.getRenderButton({
|
{this.getRenderButton({
|
||||||
iconName: "CubeShape",
|
iconName: "ProductVariant",
|
||||||
i18NKey: "Command.Bar.Add.Range.Info",
|
i18NKey: "Command.Bar.Add.Range.Info",
|
||||||
click: () => {
|
click: () => {
|
||||||
this.props.status ? this.props.status.newRange() : undefined;
|
this.props.status ? this.props.status.newRange() : undefined;
|
||||||
}
|
}
|
||||||
})}
|
})}
|
||||||
{this.getRenderButton({ iconName: "StepSharedAdd", i18NKey: "Command.Bar.Add.Behavior.Info" })}
|
{this.getRenderButton({ iconName: "Running", i18NKey: "Command.Bar.Add.Behavior.Info" })}
|
||||||
{this.getRenderButton({
|
{this.getRenderButton({
|
||||||
iconName: "Tag",
|
iconName: "Tag",
|
||||||
i18NKey: "Command.Bar.Add.Tag.Info",
|
i18NKey: "Command.Bar.Add.Tag.Info",
|
||||||
|
@ -54,6 +54,8 @@ const EN_US = {
|
|||||||
"Popup.Setting.Title": "Preferences setting",
|
"Popup.Setting.Title": "Preferences setting",
|
||||||
"Build.In.Label.Name.All.Group": "All group",
|
"Build.In.Label.Name.All.Group": "All group",
|
||||||
"Build.In.Label.Name.All.Range": "All range",
|
"Build.In.Label.Name.All.Range": "All range",
|
||||||
|
"Behavior.Template.Title": "Behavior",
|
||||||
|
"Behavior.Template.Intro": "This is a template behavior",
|
||||||
"Common.No.Data": "No Data",
|
"Common.No.Data": "No Data",
|
||||||
"Common.No.Unknown.Error": "Unknown error",
|
"Common.No.Unknown.Error": "Unknown error",
|
||||||
"Common.Attr.Title.Basic": "Basic properties",
|
"Common.Attr.Title.Basic": "Basic properties",
|
||||||
|
@ -54,6 +54,8 @@ const ZH_CN = {
|
|||||||
"Popup.Setting.Title": "首选项设置",
|
"Popup.Setting.Title": "首选项设置",
|
||||||
"Build.In.Label.Name.All.Group": "全部群",
|
"Build.In.Label.Name.All.Group": "全部群",
|
||||||
"Build.In.Label.Name.All.Range": "全部范围",
|
"Build.In.Label.Name.All.Range": "全部范围",
|
||||||
|
"Behavior.Template.Title": "行为",
|
||||||
|
"Behavior.Template.Intro": "这是一个模板行为",
|
||||||
"Common.No.Data": "暂无数据",
|
"Common.No.Data": "暂无数据",
|
||||||
"Common.No.Unknown.Error": "未知错误",
|
"Common.No.Unknown.Error": "未知错误",
|
||||||
"Common.Attr.Title.Basic": "基础属性",
|
"Common.Attr.Title.Basic": "基础属性",
|
||||||
|
@ -52,7 +52,7 @@ class ObjectCommand extends Component<IMixinStatusProps> {
|
|||||||
this.props.status ? this.props.status.newRange() : undefined;
|
this.props.status ? this.props.status.newRange() : undefined;
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Icon iconName="CubeShape"></Icon>
|
<Icon iconName="ProductVariant"></Icon>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
className="command-item red"
|
className="command-item red"
|
||||||
|
Loading…
Reference in New Issue
Block a user