vue3+Element Plus使用el-dialog点击关闭、确定出现错误

错误分析:变量定义的位置不对

<el-dialog v-model="visible">
...
</el-dialog>const props = defineProps<{ visible: boolean }>()
const state = reactive({form: {name: ''},formLabelWidth: '100px',// 一些需要单独使用有特殊意义的字段需要单独定义,此处不可//  visible: computed(() => props.visible)
})const { form, formLabelWidth } = toRefs(state)
const visible = computed(() => props.visible)

Uncaught TypeError: ‘set‘ on proxy: trap returned falsish for property ‘visible‘相关推荐

  1. compu.vue:5 Uncaught TypeError: ‘set‘ on proxy: trap returned falsish for property ‘fullname‘

    修改计算属性要写完整版,我写的只是精简版 person.fullname = computed(() => person.xing + person.ming) 完整版写法:参考文档:Compu ...

  2. Uncaught TypeError: Cannot read properties of undefined (reading ‘_modulesNamespaceMap‘)

    [Vue warn]: Property "$store" was accessed during render but is not defined on instance. a ...

  3. 立即执行函数报错Uncaught TypeError: (intermediate value) is not a function.

    立即执行函数报错Uncaught TypeError: (intermediate value) is not a function. 文章目录 立即执行函数报错Uncaught TypeError: ...

  4. “Uncaught TypeError: string is not a function”

    http://www.cnblogs.com/haitao-fan/archive/2013/11/08/3414678.html 今天在js中写了一个方法叫做search(),然后点击按钮的时候提示 ...

  5. chrome浏览器不能录音:Uncaught TypeError: Cannot read property ‘getUserMedia‘ of undefined解决方法

    Uncaught TypeError: Cannot read property 'getUserMedia' of undefined解决方法 javascript 打不开浏览器录音功能的问题解决方 ...

  6. jquery.dataTables.min.js: Uncaught TypeError: Cannot read property 'style' of undefined

    Jquery DataTable使用报这个错: jquery.dataTables.min.js: Uncaught TypeError: Cannot read property 'style' o ...

  7. Ajax方式上传文件报错Uncaught TypeError: Illegal invocation

    今天使用ajax上传文件时,出现了错误.数据传输的方式是通过定义formData完成的,提交的文件对象也设置为dom对象,但是还是不能发送请求.F12看到后台报了个错误:Uncaught TypeEr ...

  8. JsBridge Uncaught TypeError: Cannot call method 'callHandler' of undefined, source

    h5和原生结合开发app越来越流行.其实就是webview 的js调用native的方法.也就是需要搭建一个桥.这样的桥早就有人搭建好了,那就是jsbridge. git地址: https://git ...

  9. Uncaught TypeError: Cannot read property 'setAttribute' of null

    Uncaught TypeError: Cannot read property 'setAttribute' of null 其实就是js中空指针异常 h5splayer.js:1 Uncaught ...

最新文章

  1. 基于GeoMipmap的地形系统。
  2. java.security.AccessControlException: access denie
  3. 【msdn wpf forum翻译】获取当前窗口焦点所在的元素
  4. 奔图打印机显示未连接_国货之“彩” |奔图CP2200DW彩色激光打印机首测
  5. 设计模式之GOF23组合模式
  6. 分享一款灵动微MM32F0010A1T兼容替换STM8S003F3P6
  7. Android - View 和 ViewGroup
  8. 中国舞蹈家协会街舞委员会与微博达成战略合作
  9. 2019小程序发展趋势
  10. 在Unity中实现简单的动画转场
  11. springboot下载excel(解决文件损坏问题)
  12. ASP.NET2.0数据操作之母板页和站点导航
  13. 教大家如何把pdf转成dwg格式的cad文档
  14. POJ3179 Corral the Cows 离散化 二分 前缀和
  15. 【今日CV 计算机视觉论文速览 第103期】Mon, 22 Apr 2019
  16. GitHub 上最酷的 8 个简历模板
  17. linux缓存无法写入,缓存文件写入失败_Linux下搭建网站提示缓存文件写入失败怎么办...
  18. 静息态功能连接以及脑网络
  19. 交错的立方体(staggered cubes)
  20. 用python开发安卓手机脚本录制工具_手机脚本精灵安卓好用录制工具

热门文章

  1. 浙江省c语言二级的笔试真题及答案,浙江省高等学校C语言二级----笔试部分真题2007-2010年.doc...
  2. 文本数据增强二(EDA、同义词替换-新增-交换-删除-生成同义句)
  3. HTML的快速入门(六)
  4. IBM SPSS Statistics 与用户自定义 Python 模块的集成及分析
  5. 如何快速的获取微博内容?
  6. CSS代码中的属性,盒子模型
  7. 华为OJ——参数解析
  8. StringBuffer和StringBuilder
  9. Thinkphp里面设置url伪静态
  10. Windows10数字权利