ant-design vue select 组件 请求一次接口后本次实时筛选

 
        
          
            
              {{item.provinceName}}
            
          
        
      
import debounce from 'lodash/debounce'
export default {
  data() {
    return {
           provinceList: [] 
          }
     },
  methods: {
     filterOption(input, option) {
      return (
       option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
      )
    },
   async handleProvinceChange (value) {
        let cityData = await getCityList({
          provinceId: value
        }) || {}
     this.cityList = cityData.data || []
    }
  }
}

你可能感兴趣的:(ant-design vue select 组件 请求一次接口后本次实时筛选)