loading

摘要: file:[console] SyntaxError: "undefined" is not valid JSON 下面是我写的一个组件,其中 attrs 属性需要传递一个 JSON 字符串。JSON 数据本身的键是双引号,上述的报错可能就是因此导致的。 file:[Example.vue] <SV 阅读全文
posted @ 2023-09-27 19:50 Himmelbleu 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 传递 Ref 类型,不要解包传递,即 .value 传递非 Ref 类型,导致后代组件不会更新数据。 file:[Father.vue] const paper = shallowRef<dia.Paper>(); const graph = shallowRef<dia.Graph>(); // 阅读全文
posted @ 2023-09-27 17:04 Himmelbleu 阅读(30) 评论(0) 推荐(0) 编辑