将smallint字段也纳入单选框的类型

pull/419/head
reatang 2022-10-19 23:25:09 +08:00
parent b9877c10ff
commit 007d832f94
1 changed files with 1 additions and 1 deletions

View File

@ -1587,7 +1587,7 @@ EOD;
$inputType = 'datetime';
}
// 指定后缀结尾且类型为enum,说明是个单选框
if ($this->isMatchSuffix($fieldsName, $this->enumRadioSuffix) && $v['DATA_TYPE'] == 'enum') {
if ($this->isMatchSuffix($fieldsName, $this->enumRadioSuffix) && $v['DATA_TYPE'] == 'enum' || $v['DATA_TYPE'] == 'smallint') {
$inputType = "radio";
}
// 指定后缀结尾且类型为set,说明是个复选框