소스 검색

update copyable

jqh 5 년 전
부모
커밋
42884d9dcd
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/Grid/Displayers/Copyable.php

+ 2 - 1
src/Grid/Displayers/Copyable.php

@@ -42,6 +42,7 @@ JS;
     <i class="fa fa-copy"></i>
 </a>&nbsp;{$this->value}
 HTML;
-        return $this->value ? $html : '-';
+
+        return $this->value === '' || $this->value === null ? $this->value : $html;
     }
 }