This commit is contained in:
Mirco Wittrien 2020-08-04 11:29:20 +02:00
parent d04bb3fc70
commit c3ca10a0ae
2 changed files with 4 additions and 3 deletions

View File

@ -8963,7 +8963,7 @@
children: BDFDB.ReactUtils.createElement(InternalComponents.LibraryComponents.TabBar, {
itemClassName: this.props.itemClassName,
type: InternalComponents.LibraryComponents.TabBar.Types.SIDE,
items: items.map(data => ({value: data.value})),
items: items,
selectedItem: selectedItem,
renderItem: this.props.renderItem,
onItemSelect: this.handleItemSelect.bind(this)
@ -9174,7 +9174,7 @@
render() {
let items = (BDFDB.ArrayUtils.is(this.props.items) ? this.props.items : [{}]).filter(n => n);
let selectedItem = this.props.selectedItem || (items[0] || {}).value;
let renderItem = typeof this.props.renderItem == "function" ? this.props.renderElement : (data => data.label || data.value);
let renderItem = typeof this.props.renderItem == "function" ? this.props.renderItem : (data => data.label || data.value);
return BDFDB.ReactUtils.createElement(InternalComponents.NativeSubComponents.TabBar, BDFDB.ObjectUtils.exclude(Object.assign({}, this.props, {
selectedItem: selectedItem,
onItemSelect: this.handleItemSelect.bind(this),
@ -9943,6 +9943,7 @@
flex: 0 1 auto;
}
${BDFDB.dotCN.sidebarcontent} {
padding: 8px 0;
flex: 1 1 auto;
}

File diff suppressed because one or more lines are too long