【JVXETable】修复首屏加载速度

master
JEECG 2025-08-26 13:29:05 +08:00
parent 7af8346b79
commit d245ef3037
1 changed files with 2 additions and 2 deletions

View File

@ -117,13 +117,13 @@ export function useFinallyProps(props: JVxeTableProps, data: JVxeDataProps, meth
}); });
// update-begin--author:sunjianlei---date:20250804---for:issues/8593 // update-begin--author:sunjianlei---date:20250804---for:issues/8593
const vxeColumnsRef = ref([]) const vxeColumnsRef = ref(data.vxeColumns!.value || [])
const watchColumnsDebounce = debounce(async () => { const watchColumnsDebounce = debounce(async () => {
vxeColumnsRef.value = [] vxeColumnsRef.value = []
await nextTick() await nextTick()
vxeColumnsRef.value = data.vxeColumns!.value vxeColumnsRef.value = data.vxeColumns!.value
}, 50) }, 50)
watch(data.vxeColumns!, watchColumnsDebounce, {immediate: true}) watch(data.vxeColumns!, watchColumnsDebounce)
// update-end----author:sunjianlei---date:20250804---for:issues/8593 // update-end----author:sunjianlei---date:20250804---for:issues/8593
const vxeProps = computed(() => { const vxeProps = computed(() => {