af2bac41c2c3a17431c8e6abb605b33720963a4e.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <div class="grid-dropdown-actions dropdown">
  2. <a href="#" style="padding: 0 10px;" class="dropdown-toggle" data-toggle="dropdown">
  3. <i class="fa fa-ellipsis-v"></i>
  4. </a>
  5. <ul class="dropdown-menu" style="min-width: 70px !important;box-shadow: 0 2px 3px 0 rgba(0,0,0,.2);border-radius:0;left: -65px;top: 5px;">
  6. <?php $__currentLoopData = $default; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $action): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  7. <li><?php echo $action->render(); ?></li>
  8. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  9. <?php if(!empty($custom)): ?>
  10. <?php if(!empty($default)): ?>
  11. <li class="divider"></li>
  12. <?php endif; ?>
  13. <?php $__currentLoopData = $custom; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $action): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  14. <li><?php echo $action->render(); ?></li>
  15. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  16. <?php endif; ?>
  17. </ul>
  18. </div>
  19. <script>
  20. $('.table-responsive').on('shown.bs.dropdown', function(e) {
  21. var t = $(this),
  22. m = $(e.target).find('.dropdown-menu'),
  23. tb = t.offset().top + t.height(),
  24. mb = m.offset().top + m.outerHeight(true),
  25. d = 20;
  26. if (t[0].scrollWidth > t.innerWidth()) {
  27. if (mb + d > tb) {
  28. t.css('padding-bottom', ((mb + d) - tb));
  29. }
  30. } else {
  31. t.css('overflow', 'visible');
  32. }
  33. }).on('hidden.bs.dropdown', function() {
  34. $(this).css({
  35. 'padding-bottom': '',
  36. 'overflow': ''
  37. });
  38. });
  39. </script>
  40. <?php echo $__env->yieldContent('child'); ?>
  41. <?php /**PATH C:\phpstudy_pro\WWW\cydsyy-api\vendor\encore\laravel-admin\src/../resources/views/grid/actions/dropdown.blade.php ENDPATH**/ ?>