如何动态设置照明ui:inputSelect默认值?

时间:2019-02-27 04:41:17

标签: salesforce-lightning

<ui:inputSelect value="{!v.quotation.Currency__c}">
  <aura:iteration items="{!v.currencyList}" var="crr">
    <ui:inputSelectOption text="{!crr}" label="{!crr}" value="{!v.quotation.Currency__c == crr}"/>
  </aura:iteration>
</ui:inputSelect>

v.quotation.Currency__c == crr无效,为什么?

0 个答案:

没有答案