From 7d0ac8e07231d93045a098defbe8c03c29b7a55e Mon Sep 17 00:00:00 2001 From: Hao Sun Date: Mon, 17 Apr 2023 16:37:38 +0800 Subject: [PATCH] * zin: refactor --- module/program/ui/create.html.php | 2 +- zin/wg/control/v1.php | 2 +- zin/wg/historyrecord/v1.php | 2 +- zin/zui/skin.class.php | 0 4 files changed, 3 insertions(+), 3 deletions(-) delete mode 100644 zin/zui/skin.class.php diff --git a/module/program/ui/create.html.php b/module/program/ui/create.html.php index 16d156ba70..5c712bd1bb 100644 --- a/module/program/ui/create.html.php +++ b/module/program/ui/create.html.php @@ -41,7 +41,7 @@ form set::label($lang->program->budget), set::control(['type' => 'inputControl', 'prefix' => $lang->project->currencySymbol[$currency], 'prefixWidth' => 'icon']), on::change('budgetOverrunTips'), - h::input(set(['type' => 'hidden', 'name' => 'budgetUnit', 'value' => $currency])) + formHidden('budgetUnit', $currency), ), formGroup ( diff --git a/zin/wg/control/v1.php b/zin/wg/control/v1.php index 846c4962a2..32a32eb507 100644 --- a/zin/wg/control/v1.php +++ b/zin/wg/control/v1.php @@ -14,7 +14,7 @@ class control extends wg { static $defineProps = [ - 'type: string', // text, password, email, number, date, time, datetime, month, url, search, tel, color, picker, select, checkbox, radio, file, textarea + 'type: string', // text, password, email, number, date, time, datetime, month, url, search, tel, color, picker, select, checkbox, radio, checkboxList, radioList, checkboxListInline, radioListInline, file, textarea 'name: string', 'id?: string', 'value?: string', diff --git a/zin/wg/historyrecord/v1.php b/zin/wg/historyrecord/v1.php index b7c6b742d1..fec573e8f9 100644 --- a/zin/wg/historyrecord/v1.php +++ b/zin/wg/historyrecord/v1.php @@ -13,7 +13,7 @@ class historyRecord extends wg private function buildHistoriesList() { global $app, $lang; - $actions = $this->prop('actions'); + $actions = $this->prop('actions') ?? data('actions'); $users = $this->prop('users'); $methodName = $this->prop('methodName'); $historiesListView = h::ol(setClass('histories-list')); diff --git a/zin/zui/skin.class.php b/zin/zui/skin.class.php deleted file mode 100644 index e69de29bb2..0000000000