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