* zin: fix form-actions of detailBody(hack).
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
$(() =>
|
||||
{
|
||||
const $formActions = $('form.detail-body + .form-actions');
|
||||
if($formActions.length)
|
||||
{
|
||||
$detailBody = $formActions.prev();
|
||||
$detailBody.append($formActions);
|
||||
}
|
||||
});
|
||||
@@ -13,9 +13,13 @@ class detailBody extends wg
|
||||
'side' => array('map' => 'detailSide'),
|
||||
'bottom' => array('map' => 'history,fileList'),
|
||||
'floating' => array('map' => 'floatToolbar'),
|
||||
'fixedActions' => array(),
|
||||
);
|
||||
|
||||
public static function getPageJS(): string|false
|
||||
{
|
||||
return file_get_contents(__DIR__ . DS . 'js' . DS . 'v1.js');
|
||||
}
|
||||
|
||||
protected function build()
|
||||
{
|
||||
$main = $this->block('main');
|
||||
@@ -41,9 +45,9 @@ class detailBody extends wg
|
||||
);
|
||||
}
|
||||
|
||||
return form
|
||||
return formBase
|
||||
(
|
||||
set::actionsClass('h-14 flex flex-auto items-center justify-center shadow'),
|
||||
set::actionsClass('h-14 flex flex-none items-center justify-center shadow'),
|
||||
setClass('detail-body rounded col of-y-hidden bg-white'),
|
||||
set($this->props->skip(array_keys(static::getDefinedProps()))),
|
||||
setStyle('height', 'calc(100vh - 120px)'),
|
||||
@@ -53,6 +57,7 @@ class detailBody extends wg
|
||||
div
|
||||
(
|
||||
setClass('flex'),
|
||||
setStyle('min-height', '100%'),
|
||||
div
|
||||
(
|
||||
setClass('col grow'),
|
||||
|
||||
Reference in New Issue
Block a user