2016-12-20 94 views
0

如何從禁用離子選擇中去除透明樣式? 請幫忙。Style禁用離子選擇

<ion-item (click)="goToProducts()"> 
    <ion-label stacked>product</ion-label> 
    <ion-select [(ngModel)]="product" disabled class="disabled"> 
     <ion-option value="1">Product 01</ion-option> 
    </ion-select> 
    </ion-item> 

上SCSS文件

.disabled{ ? 
    } 
+0

我沒有看到[選擇文件]任何透明(HTTPS ://ionicframework.com/docs/v2/api/components/select/Select/) – Sakuto

+0

是透明的,當我添加禁用 ngLucas

+0

你的意思是用淺灰色書寫? – Sakuto

回答

1

我補充一點:

.select-disabled, .item-select-disabled ion-label { 
    opacity: 1; 
} 

它爲我工作