Skip to content

Commit cdae06c

Browse files
committed
feat: CMS 自定义字段显示异常问题修复
1 parent 0df7d14 commit cdae06c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

vendor/modstart/modstart/views/core/field/switchField-grid.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@if($gridEditable)
1+
@if(!empty($gridEditable))
22
<div>
33
<input type="checkbox" value="1" name="{{$name}}_{{$_index}}" lay-skin="switch"
44
lay-filter="{{$name}}_{{$_index}}"

vendor/modstart/modstart/views/core/field/type-grid.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php $valueLabel = isset($valueMap[$value])?$valueMap[$value]:$value; ?>
2-
@if($gridEditable)
2+
@if(!empty($gridEditable))
33
<select lay-ignore data-type="{{$name}}_{{$_index}}" class="form-sm {{isset($colorMap[$value])?$colorMap[$value]:'default'}}">
44
@foreach($valueMap as $k=>$v)
55
<option value="{{$k}}" @if($value==$k) selected @endif>

0 commit comments

Comments
 (0)