mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
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:
@@ -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!
|
||||
|
||||
|
||||
Reference in New Issue
Block a user