1、el-select懒加载 el-select选择器里的数据通过后端返回得到,这里返回了将近两万条数据,点开选择器页面就特别卡,所以最好采用懒加载方法,具体使用如下: 控件部分: <el-select v-model="form" placeholder="" v-el-select-loadmore="loadmore" //懒加载方法 > <el-option v-for="item in dataItems" :ke...
<el-select v-el-select-loadmore="loadMore" :value="defaultValue" :loading="loading" :multiple="multiple" :placeholder="placeholder" :allow-create="allowCreate" filterable remote clearable :remote-method="(query) => {remoteMethod(query, value)}" style="width: 100%;" @change="change" @input...