查询移除lay-verify
This commit is contained in:
parent
09d4686437
commit
4b652aac8d
@ -833,15 +833,9 @@ EOF;
|
|||||||
$control = "{$control}Like";
|
$control = "{$control}Like";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 查询移除required
|
// 查询类型移除lay-verify
|
||||||
if ($type == 'search' && !empty($props['lay-verify'])) {
|
if ($type == 'search' && !empty($props['lay-verify'])) {
|
||||||
$verify_items = explode('|', $props['lay-verify']);
|
$props['lay-verify'] = '';
|
||||||
foreach ($verify_items as $key => $value) {
|
|
||||||
if ($value === 'required') {
|
|
||||||
unset($verify_items[$key]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
$props['lay-verify'] = implode('|', $verify_items);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$options = [
|
$options = [
|
||||||
|
Loading…
Reference in New Issue
Block a user