Laravel-log-viewer: 无法从日志详细信息中复制文本

创建于 2018-10-30  ·  3评论  ·  资料来源: rap2hpoutre/laravel-log-viewer

单击后,它将切换关闭或打开。
在日志视图详细信息中复制或选择文本真的很难。

最有用的评论

发表意见后

php artisan vendor:publish \
  --provider="Rap2hpoutre\LaravelLogViewer\LaravelLogViewerServiceProvider" \
  --tag=views

转到资源/视图/供应商/laravel-log-viewer/log.blade.php

改变

$('.table-container tr').on('click', function () {
      $('#' + $(this).data('display')).toggle();
    });

$('.table-container button').on('click', function () {
        $('#' + $(this).data('display')).toggle();
      });

现在小fa-search按钮将被切换以展开行。

你也可以改变

<button type="button"
        class="float-right expand btn btn-outline-dark btn-sm mb-2 ml-2" 
        data-display="stack{{{$key}}}">
        <span class="fa fa-search"></span>
</button>

fa fa-searchfa fa-expandfas fa-expand-arrows-alt如果您使用 Font Awesome 5+ 以获得更好的 UX。

所有3条评论

是的,我完全同意! 我不应该接受这个 PR: https :

我明白了,应该是右上角的一个切换按钮来展开或折叠

发表意见后

php artisan vendor:publish \
  --provider="Rap2hpoutre\LaravelLogViewer\LaravelLogViewerServiceProvider" \
  --tag=views

转到资源/视图/供应商/laravel-log-viewer/log.blade.php

改变

$('.table-container tr').on('click', function () {
      $('#' + $(this).data('display')).toggle();
    });

$('.table-container button').on('click', function () {
        $('#' + $(this).data('display')).toggle();
      });

现在小fa-search按钮将被切换以展开行。

你也可以改变

<button type="button"
        class="float-right expand btn btn-outline-dark btn-sm mb-2 ml-2" 
        data-display="stack{{{$key}}}">
        <span class="fa fa-search"></span>
</button>

fa fa-searchfa fa-expandfas fa-expand-arrows-alt如果您使用 Font Awesome 5+ 以获得更好的 UX。

此页面是否有帮助?
0 / 5 - 0 等级

相关问题

akoepcke picture akoepcke  ·  9评论

watermelonjuice picture watermelonjuice  ·  8评论

serdarsaygili picture serdarsaygili  ·  11评论

DevynCJohnson picture DevynCJohnson  ·  5评论

avesgit picture avesgit  ·  7评论