mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-11 03:24:16 +00:00
added more props
This commit is contained in:
parent
ed643b1323
commit
bb9dd39d15
@ -188,24 +188,43 @@ class DefaultWindowRender extends React.Component {
|
|||||||
position,
|
position,
|
||||||
})
|
})
|
||||||
}}
|
}}
|
||||||
dragHandleClassName="window_topbar"
|
minWidth={
|
||||||
minWidth={this.props.minWidth ?? "300px"}
|
this.props.minWidth
|
||||||
minHeight={this.props.minHeight ?? "200px"}
|
}
|
||||||
|
minHeight={
|
||||||
|
this.props.minHeight
|
||||||
|
}
|
||||||
|
enableResizing={
|
||||||
|
this.props.enableResizing ?? true
|
||||||
|
}
|
||||||
|
disableDragging={
|
||||||
|
this.props.disableDragging ?? false
|
||||||
|
}
|
||||||
|
dragHandleClassName={
|
||||||
|
this.props.dragHandleClassName ?? "window_topbar"
|
||||||
|
}
|
||||||
|
bounds={
|
||||||
|
this.props.bounds ?? "#root"
|
||||||
|
}
|
||||||
>
|
>
|
||||||
<div
|
{
|
||||||
style={{
|
this.props.useWrapper
|
||||||
height: dimensions.height,
|
? <div
|
||||||
width: dimensions.width,
|
style={{
|
||||||
}}
|
height: dimensions.height,
|
||||||
className="window_wrapper"
|
width: dimensions.width,
|
||||||
>
|
}}
|
||||||
<div className="window_topbar">
|
className="window_wrapper"
|
||||||
<div className="title">{this.props.id}</div>
|
>
|
||||||
<div className="actions">{this.renderActions()}</div>
|
<div className="window_topbar">
|
||||||
</div>
|
<div className="title">{this.props.id}</div>
|
||||||
|
<div className="actions">{this.renderActions()}</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div className="window_body">{this.getComponentRender()}</div>
|
<div className="window_body">{this.getComponentRender()}</div>
|
||||||
</div>
|
</div>
|
||||||
|
: this.props.children
|
||||||
|
}
|
||||||
</Rnd>
|
</Rnd>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user