fix: modal open logic missing (#3462)

* fix: keep rowSelection onChange call outside

* fix: watch open logic lost after build (modal)
This commit is contained in:
xachary 2023-12-25 19:43:37 +08:00 committed by GitHub
parent a7b2f14b90
commit cc97f06354
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -169,7 +169,9 @@
(v) => { (v) => {
emit('open-change', v); emit('open-change', v);
emit('update:open', v); emit('update:open', v);
instance && modalMethods.emitOpen?.(v, instance.uid); if (instance && modalMethods.emitOpen) {
modalMethods.emitOpen(v, instance.uid);
}
nextTick(() => { nextTick(() => {
if (props.scrollTop && v && unref(modalWrapperRef)) { if (props.scrollTop && v && unref(modalWrapperRef)) {
(unref(modalWrapperRef) as any).scrollTop(); (unref(modalWrapperRef) as any).scrollTop();