antdv中使用lodash的节流防抖函数
lodash的throttle
lodash的debounce
示例说明
<a-button type="primary" @click="searchQuery">查询</a-button>
import debounce from 'lodash/debounce'
created () {
// 加入防抖,防止合计多次返回延时,变多行
this.searchQuery = debounce(this.searchQuery, 200, true)
},