ddchef / vue-code-diff

vue文件差异对比
170 stars 40 forks source link

RangeError: Maximum call stack size exceeded #86

Open caoyuanlianni opened 1 year ago

caoyuanlianni commented 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>