Add add button on label list

This commit is contained in:
2022-03-11 22:10:19 +08:00
parent 7e9a652249
commit c84c0b903b
4 changed files with 75 additions and 9 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
div.label-list-panel-root {
width: 100%;
height: 100%;
min-height: 100%;
padding: 10px;
box-sizing: border-box;
}
+4 -1
View File
@@ -30,7 +30,6 @@ class LabelList extends Component<ILabelListProps & IMixinStatusProps & IMixinSe
}}
>
<LabelListComponent
canDelete
labels={labels}
focusLabel={this.props.status ? this.props.status.focusLabel : undefined}
clickLabel={(label) => {
@@ -49,6 +48,10 @@ class LabelList extends Component<ILabelListProps & IMixinStatusProps & IMixinSe
}
this.labelInnerClick = true;
}}
minHeight={26}
addLabel={() => {
this.props.status ? this.props.status.newLabel() : undefined;
}}
/>
</div>;
}