mirror of https://gitee.com/karson/fastadmin.git
将smallint字段也纳入单选框的类型
parent
b9877c10ff
commit
007d832f94
|
|
@ -1587,7 +1587,7 @@ EOD;
|
||||||
$inputType = 'datetime';
|
$inputType = 'datetime';
|
||||||
}
|
}
|
||||||
// 指定后缀结尾且类型为enum,说明是个单选框
|
// 指定后缀结尾且类型为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";
|
$inputType = "radio";
|
||||||
}
|
}
|
||||||
// 指定后缀结尾且类型为set,说明是个复选框
|
// 指定后缀结尾且类型为set,说明是个复选框
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue