Skip to content

Commit

Permalink
chore: update vue3 playground test code
Browse files Browse the repository at this point in the history
  • Loading branch information
Shimada666 committed Mar 7, 2024
1 parent 77f44c3 commit fed7e71
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 6 additions & 3 deletions vue3-playground/App.vue
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
<script lang="ts" setup>
import { version } from 'vue-demi'
import { reactive } from 'vue'
import c from 'highlight.js/lib/languages/c'
import { CodeDiff, hljs } from '../src/index'
hljs.registerLanguage('c', c)
// import { oldLongText } from '../demo/text/old-long-text'
// import { newLongText } from '../demo/text/new-long-text'
const form = reactive({
// oldString: oldLongText,
// newString: newLongText,
oldString: '{\n "code": "200",\n "msg": "请求成功",\n "data": {\n "hitokoto": "往者不可谏,来者犹可追。",\n "from": "论语·微子篇"\n },\n "time": "2024-01-12 17:27:03"\n}',
newString: '{\n "code": "200",\n "msg": "请求成功",\n "data": {\n "hitokoto": "成熟的人眼里满是前途,稚嫩的人眼里满是爱恨情仇。",\n "from": "网易云热评"\n },\n "time": "2024-01-12 17:27:06"\n}',
oldString: '#include <stdio.h>',
newString: '123\n123',
filename: 'oldFile',
newFilename: 'newFile',
language: 'json',
language: 'c',
diffStyle: 'word',
outputFormat: 'side-by-side',
ignoreMatchingLines: 'time',
Expand Down
2 changes: 0 additions & 2 deletions vue3-playground/main.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { createApp } from 'vue'
import TemplateComponent from '../src/index'
import App from './App.vue'

const app = createApp(App)
app.use(TemplateComponent)
app.mount('#app')

0 comments on commit fed7e71

Please sign in to comment.