Skip to content

Commit 7fb2a4a

Browse files
committed
docs: update demo version
1 parent 3a2299d commit 7fb2a4a

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

demo/App.vue

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,18 @@ function clearText() {
3636
}
3737
watch(oldString, () => localStorage.setItem('oldString', oldString.value))
3838
watch(newString, () => localStorage.setItem('newString', newString.value))
39+
40+
function printEvent(e) {
41+
// eslint-disable-next-line no-console
42+
console.log('diff finished! below is data:')
43+
// eslint-disable-next-line no-console
44+
console.log(e)
45+
}
3946
</script>
4047

4148
<template>
4249
<p align="center">
43-
Vue version: {{ version }}. CodeDiff version: 1.5.0.
50+
Vue version: {{ version }}. CodeDiff version: 1.6.0
4451
</p>
4552
<div style="display: flex; justify-content: space-evenly;">
4653
<textarea v-model="oldString" style="width: 48vw;" :rows="20" />
@@ -118,6 +125,7 @@ watch(newString, () => localStorage.setItem('newString', newString.value))
118125
:trim="formState.trim"
119126
:no-diff-line-feed="formState.noDiffLineFeed"
120127
:filename="formState.filename"
128+
@diff="printEvent"
121129
/>
122130
</template>
123131

0 commit comments

Comments
 (0)