This commit is contained in:
Mirco Wittrien 2019-10-15 00:20:25 +02:00
parent af19ebf077
commit 6b2c464b7b
2 changed files with 27 additions and 14 deletions

File diff suppressed because one or more lines are too long

View File

@ -5553,22 +5553,35 @@ var BDFDB = {myPlugins: BDFDB && BDFDB.myPlugins ? BDFDB.myPlugins : {}, BDv2Api
LibraryComponents.Button = BDFDB.WebModules.findByProperties('Colors', 'Hovers', 'Looks'); LibraryComponents.Button = BDFDB.WebModules.findByProperties('Colors', 'Hovers', 'Looks');
LibraryComponents.ButtonItem = class ButtonItem extends BDFDB.React.Component { LibraryComponents.ButtonItem = class ButtonItem extends BDFDB.React.Component {
render() { render() {
let buttonprops = Object.assign({}, this.props);
delete buttonprops.className;
delete buttonprops.label;
delete buttonprops.hideBorder;
return BDFDB.React.createElement(LibraryComponents.Flex, { return BDFDB.React.createElement(LibraryComponents.Flex, {
className: this.props.className, className: [this.props.className, this.props.disabled ? BDFDB.disCN.disabled : null].filter(n => n).join(' '),
align: LibraryComponents.Flex.Align.START, direction: LibraryComponents.Flex.Direction.VERTICAL,
align: LibraryComponents.Flex.Align.STRETCH,
children: [ children: [
BDFDB.React.createElement(LibraryComponents.Flex.Child, { BDFDB.React.createElement(LibraryComponents.Flex, {
wrap: true, align: LibraryComponents.Flex.Align.CENTER,
children: BDFDB.React.createElement("label", { children: [
className: BDFDB.disCN.titledefault, BDFDB.React.createElement(LibraryComponents.Flex.Child, {
children: this.props.label wrap: true,
}) children: BDFDB.React.createElement("label", {
className: BDFDB.disCN.titledefault,
children: this.props.label
})
}),
BDFDB.React.createElement(LibraryComponents.Flex.Child, {
grow: 0,
shrink: 0,
children: BDFDB.React.createElement(LibraryComponents.Button, buttonprops)
})
]
}), }),
BDFDB.React.createElement(LibraryComponents.Flex.Child, { !this.props.hideBorder ? BDFDB.React.createElement(LibraryComponents.FormComponents.FormDivider, {
grow: 0, className: BDFDB.disCN.modaldividerdefault
shrink: 0, }) : null
children: BDFDB.React.createElement(LibraryComponents.Button, Object.assign({}, this.props, {className: null, label: null}))
})
] ]
}) })
} }