瀏覽代碼

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;
     }
 }