iview i-select filterable remote屬性詳解


 

<i-select v-model="currentCode" filterable clearable remote :remote-method="getInfoList" label-in-value @on-change="codeChange" :loading="codeStatu">
    <i-option v-for="item in List" :label="item.code" :disabled="item.disabled" :key="item.code" :value='item.name'>
        <slot><i style="display: none;">{{item.code}}</i></slot>
        {{item.code}} - {{item.name}}
    </i-option>
</i-select>

remote-method:輸入框值發生改變時觸發此函數,遠程時使用此函數。
@on-change:下拉框選擇時會觸發此函數,觸發后會緊接着觸發remote-method里的函數。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM