Results 1 comments of Ping Gao

vue3 解决方案: 1. 组件上加个v-if和ref ``` v-if="ifRenderDialog" ref="inputDialog" ``` 2. 声明所需变量 ``` const ifRenderDialog = ref(false); const vm = getCurrentInstance(); const inputDialog = ref(null); ``` 3. 之后需要打开popup使用的时候再让他渲染到dom里如下 ``` ifRenderDialog.value = true;...