fix:修复高级搜索 编辑时层级不对 以及 select 滚动加载未触发的问题

This commit is contained in:
zhangyu
2023-06-12 11:46:54 +08:00
parent e4e952d405
commit 6577730e80
2 changed files with 12 additions and 10 deletions

View File

@@ -1101,7 +1101,7 @@ export const loadMore = {
bind (el, binding) {
console.log(el, binding, el.parentNode, 'bind')
// 获取element定义scroll
const selectDom = binding.dom ? el.querySelector(binding.dom) : el
const selectDom = binding.value.dom ? el.querySelector(binding.value.dom) : el
heightLoad = bus.debounce(function () {
if (!el.hasMore) {
return
@@ -1117,8 +1117,7 @@ export const loadMore = {
el.hasMore = binding.value.hasMore
},
unbind (el, binding) {
const selectDom = binding.dom ? el.querySelector(binding.dom) : el
console.log(selectDom, 'unbind')
const selectDom = binding.value.dom ? el.querySelector(binding.value.dom) : el
if (selectDom) {
selectDom.removeEventListener('scroll', heightLoad)
}