Browse Source

修复 Dropdown 没有应用 buttonStyle

dairidong 3 years ago
parent
commit
9ad18020fb
1 changed files with 2 additions and 2 deletions
  1. 2 2
      resources/views/widgets/dropdown.blade.php

+ 2 - 2
resources/views/widgets/dropdown.blade.php

@@ -1,6 +1,6 @@
 @if(! empty($button['text']) || $click)
 @if(! empty($button['text']) || $click)
     <span class="drop{{ $direction }}" style="display:inline-block">
     <span class="drop{{ $direction }}" style="display:inline-block">
-        <a id="{{ $buttonId }}" class="dropdown-toggle {{ $button['class'] }}" data-toggle="dropdown" href="javascript:void(0)">
+        <a id="{{ $buttonId }}" class="dropdown-toggle {{ $button['class'] }}" style="{{ $button['style'] }}" data-toggle="dropdown" href="javascript:void(0)">
             <stub>{!! $button['text'] !!}</stub>
             <stub>{!! $button['text'] !!}</stub>
             <span class="caret"></span>
             <span class="caret"></span>
         </a>
         </a>
@@ -26,4 +26,4 @@
             (!$a.length) || $btn.find('stub').html($($a[0]).html() + ' &nbsp;');
             (!$a.length) || $btn.find('stub').html($($a[0]).html() + ' &nbsp;');
         }
         }
     </script>
     </script>
-@endif
+@endif