* [task#133247,done,2h] Adjust the viewing cne event style.

This commit is contained in:
zhangxiquan
2024-12-02 10:56:48 +08:00
committed by 翟晓剑
parent 9d4fea8dd6
commit 9dbe3473dc
6 changed files with 66 additions and 58 deletions
+21 -33
View File
@@ -15,52 +15,40 @@ namespace zin;
formPanel
(
set::title($lang->instance->event->title),
set::actions(array(
array(
'text' => $lang->instance->event->button,
'type' => 'primary',
'onclick' => 'window.showEvents('.$instance->id.')',
)
)),
set::actions(false),
setID('events-panel'),
setClass('w-full'),
formRow
inputGroup
(
formGroup
input
(
setClass('hidden'),
set::name('name'),
set::labelWidth('160px'),
set::required(true),
set::label($lang->instance->name),
set::value($instance->name),
set::disabled(true),
)
),
formRow
(
formGroup
set::inline(true),
),
inputGroup
(
setID('component-events'),
set::name('component'),
set::labelWidth('160px'),
set::control('picker'),
set::required(true),
set::label($lang->instance->component),
on::inited()->call('initComponent', $instance->id),
on::change()->call('showEvents', $instance->id)
$lang->instance->component,
picker
(
set::name('component'),
set::control('picker'),
set::required(true),
set::label($lang->instance->component),
set::inline(true),
on::inited()->call('initComponent', $instance->id),
on::change()->call('showEvents', $instance->id,$lang->instance->event->noEvents)
)
)
),
div
(
setClass('px-1 mt-2 w-full'),
panel
(
setClass('py-2'),
form
(
h::pre(setID('events-content'), setClass('bg-gray-800 text-white progress block h-96')),
set::actions(false)
)
)
setClass('w-full'),
h::pre(setID('events-content'), setClass('bg-gray-800 text-white block h-96 scrollbar-thin')),
set::actions(false)
)
);