Open caoyuanlianni opened 1 year ago
大家好,请问使用该组件的时候,报这个是因为什么呢?
<div> <code-diff :old-string="oldStr" :new-string="newStr" context=10 output-format="side-by-side" draw-file-list=true render-nothing-when-empty=false diff-style="word" is-show-no-change=true /> </div> </template> <script> import CodeDiff from 'vue-code-diff' export default { components: {CodeDiff}, // props: { // attrs: Object, // }, data () { return { oldStr: '[]', newStr: '{}', } }, } </script>
大家好,请问使用该组件的时候,报这个是因为什么呢?