Update 0BDFDB.plugin.js

This commit is contained in:
Mirco Wittrien 2021-03-15 10:42:33 +01:00
parent 9b18959636
commit eb1ed68960
1 changed files with 15 additions and 6 deletions

View File

@ -5749,12 +5749,21 @@ module.exports = (_ => {
BDFDB.ReactUtils.createElement(class DateInputPreview extends LibraryModules.React.Component {
componentDidMount() {preview = this;}
render() {
return BDFDB.ReactUtils.createElement(InternalComponents.LibraryComponents.TextScroller, {
children: InternalComponents.LibraryComponents.DateInput.format({
formatString: input.props.customString,
dateString: input.props.dateString,
timeString: input.props.timeString
}, new Date((new Date()) - (1000*60*60*24*2)))
return BDFDB.ReactUtils.createElement("div", {
className: BDFDB.disCN.dateinputpreview,
children: [
input.props.prefix && BDFDB.ReactUtils.createElement("div", {
className: BDFDB.disCN.dateinputpreviewprefix,
children: input.props.prefix
}),
BDFDB.ReactUtils.createElement(InternalComponents.LibraryComponents.TextScroller, {
children: InternalComponents.LibraryComponents.DateInput.format({
formatString: input.props.customString,
dateString: input.props.dateString,
timeString: input.props.timeString
}, new Date((new Date()) - (1000*60*60*24*2)))
})
].filter(n => n)
});
}
})