我在具有public function messages(){
$messages=[];
foreach ($this->get('email') as $key => $val) {
$messages = [
"email.$key.value.required" => "$key th e-mail is required",
"email.$key.value.email" => "$key th e-mail is wrong e-mail format",
"name.$key.value.required" => "$key th name is required"];
}
return $messages;
}
类的mat-paginator
的底部添加了mat-table
。
所以我也在mat-elevation-z4
组件上添加了mat-elevation-z4
类,但是分页器的上部阴影在表上溢出。
如何仅去除上方阴影?
mat-paginator
类如下:
mat-elevation-z4
答案 0 :(得分:0)
我发现上面的阴影是第三个阴影,所以我只需要删除它:
.mat-elevation-z4 {
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2),
0 4px 5px 0 rgba(0, 0, 0, 0.14),
0 1px 10px 0 rgba(0, 0, 0, 0.12);
}