- zin: remove the thinkstepdetail wg.

This commit is contained in:
wangzemei
2024-05-17 15:50:50 +08:00
parent 49a1067783
commit a007beac10
2 changed files with 0 additions and 91 deletions
-1
View File
@@ -206,7 +206,6 @@ function thinkCheckbox(): thinkCheckbox {return createWg('thinkCheckbox', func_g
function thinkOptions(): thinkOptions{return createWg('thinkOptions', func_get_args());}
function thinkTableInput(): thinkTableInput {return createWg('thinkTableInput', func_get_args());}
function thinkInput(): thinkInput {return createWg('thinkInput', func_get_args());}
function thinkStepDetail(): thinkStepDetail {return createWg('thinkStepDetail', func_get_args());}
function thinkNodeMenu(): thinkNodeMenu {return createWg('thinkNodeMenu', func_get_args());}
function thinkCover(): thinkCover {return createWg('thinkCover', func_get_args());}
function affected(): affected {return createWg('affected', func_get_args());}
-90
View File
@@ -1,90 +0,0 @@
<?php
declare(strict_types=1);
namespace zin;
/**
* 思引师表格基础详情部件类。
* thinmory basic detail widget class.
*/
class thinkStepDetail extends wg
{
protected static array $defineProps = array(
'item: object',
);
protected function detailHeading()
{
global $lang, $app;
$app->loadLang('thinkstep');
$item = $this->prop('item');
return div
(
div
(
setClass('flex items-start justify-between pb-2'),
div
(
setClass('text-md leading-6 font-medium text-current'),
$item->title
),
div
(
setClass('ml-2'),
setStyle(array('min-width' => '48px')),
btnGroup
(
btn
(
setClass('btn ghost text-gray w-5 h-5'),
set::icon('edit'),
set::url(createLink('thinkwizard', 'design', "wizardID={$item->wizard}&stepID={$item->id}&status=edit")),
),
!$item->existNotNode ? btn
(
setClass('btn ghost text-gray w-5 h-5 ml-1 ajax-submit'),
set::icon('trash'),
setData('url', createLink('thinkstep', 'ajaxDelete', "stepID={$item->id}")),
setData('confirm', $lang->thinkstep->deleteTips[$item->type])
) : btn
(
set(array(
'class' => 'ghost w-5 h-5 text-gray opacity-50 ml-1',
'icon' => 'trash',
'data-toggle' => 'tooltip',
'data-title' => $lang->thinkwizard->step->cannotDeleteNode,
'data-placement' => 'bottom-start',
))
)
)
)
),
div
(
setClass('text-sm leading-6 py-0 text-opacity-60 text-fore text-sm'),
setStyle(array('margin-top' => '-30px')),
section
(
setClass('break-words'),
set::content(htmlspecialchars_decode($item->desc)),
set::useHtml(true)
)
)
);
}
protected function buildBody(): array
{
return array(
$this->detailHeading(),
);
}
protected function build(): array
{
return array
(
$this->buildBody(),
$this->children()
);
}
}