* zin: refactor

This commit is contained in:
Hao Sun
2023-04-18 09:10:49 +08:00
parent 02ccffb473
commit 7d0ac8e072
4 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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
(
+1 -1
View File
@@ -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',
+1 -1
View File
@@ -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'));
View File