From a007beac108e05e94f955f8a1c17ef151e6d3612 Mon Sep 17 00:00:00 2001 From: wangzemei Date: Fri, 17 May 2024 15:50:50 +0800 Subject: [PATCH] - zin: remove the thinkstepdetail wg. --- lib/zin/func.php | 1 - lib/zin/wg/thinkstepdetail/v1.php | 90 ------------------------------- 2 files changed, 91 deletions(-) delete mode 100644 lib/zin/wg/thinkstepdetail/v1.php diff --git a/lib/zin/func.php b/lib/zin/func.php index 288b015f02..f41c77f834 100644 --- a/lib/zin/func.php +++ b/lib/zin/func.php @@ -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());} diff --git a/lib/zin/wg/thinkstepdetail/v1.php b/lib/zin/wg/thinkstepdetail/v1.php deleted file mode 100644 index 28c3a3e088..0000000000 --- a/lib/zin/wg/thinkstepdetail/v1.php +++ /dev/null @@ -1,90 +0,0 @@ -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() - ); - } -}