feat(components): [cascader] lazyLoad support reject (#22283)

* feat(components): [cascader] `lazyLoad` support reject

* feat: update

* fix: update

* feat: remove unnecessary change

* test: add new test

* fix: update

* feat: update

* docs: update

* docs: update
This commit is contained in:
btea
2025-09-29 18:27:16 +08:00
committed by GitHub
parent 896815b986
commit 046815e33d
5 changed files with 173 additions and 20 deletions

View File

@@ -749,6 +749,15 @@ watch(realSize, async () => {
watch(presentText, syncPresentTextValue, { immediate: true })
watch(
() => popperVisible.value,
(val) => {
if (val && props.props.lazy && props.props.lazyLoad) {
cascaderPanelRef.value?.loadLazyRootNodes()
}
}
)
onMounted(() => {
const inputInner = inputRef.value!.input!