在引導4使用<label class="btn btn-secondary"><input type="radio" value="active"> Active</label>
中斷整個工具欄 - 阿爾法6引導4阿爾法6 - 標籤複選框,單選按鈕打破整個工具欄造型
這是視覺的好和壞的代碼
<div class="btn-toolbar" role="toolbar" >
<div class="btn-group btn-group-sm" role="group">
<button type="button" class="btn btn-secondary">Select All</button>
</div>
<div [(ngModel)]="toolbar.active" ngbRadioGroup name="radioBasic" class="btn-group btn-group-sm" (ngModelChange)="onChanges('activeChanged')">
<label class="btn btn-secondary">
<input type="radio" value="active"> Active
</label>
<label class="btn btn-secondary">
<input type="radio" value="inactive"> Inactive
</label>
<label class="btn btn-secondary">
<input type="radio" value="all"> All
</label>
</div>
<div class="input-group input-group-sm" style="width: 250px;">
<input id="search" [(ngModel)]="toolbar.search" (ngModelChange)="onChanges($event)" type="text" class="form-control" placeholder="Search for...">
</div>
<div class="btn-group btn-group-sm float-xs-right" role="group">
<button type="button" class="btn btn-info" (click)="onChanges('refresh')">Refresh</button>
<button type="button" class="btn btn-primary" [routerLink]="['new']">New</button>
<button type="button" class="btn btn-secondary">Debug</button>
</div>
</div>
<br/>
這改變了代碼打破整個格式化
您是否找到解決方案?請接受答案,或更新問題以便解決問題。 – ZimSystem