ant-design-vue icon indicating copy to clipboard operation
ant-design-vue copied to clipboard

fix[vc-dialog]: aira error

Open iamnotblank opened this issue 1 year ago • 1 comments
trafficstars

打开模态框控制会报如下错误:

image

iamnotblank avatar Sep 06 '24 06:09 iamnotblank

同样报错,希望早点修复

bobby169 avatar Oct 03 '24 09:10 bobby169

都要年底了还没修复

csjie3079 avatar Dec 03 '24 09:12 csjie3079

都要年底了还没修复

4.2.6已经修复了,没更新到最新版?

wsxe9988 avatar Dec 03 '24 09:12 wsxe9988

 <a-input-password v-model:value="form.password" ref="pwdRef" placeholder="请输入新密码" />

在输入框中定义一个ref ,例如:const pwdRef = ref(null);然后再展示模态框的时候用下面的方式就可以了 const showModal = () => { pwdOpen.value = true; nextTick(() => { pwdRef.value.focus(); }); }

wqqeffort avatar Mar 07 '25 08:03 wqqeffort

打开模态框时需要聚焦到某个输入框中,这样就不会报错

wqqeffort avatar Mar 07 '25 08:03 wqqeffort