Skip to content

Commit 387b206

Browse files
committed
update
1 parent b9fd5ae commit 387b206

File tree

3 files changed

+25
-15
lines changed

3 files changed

+25
-15
lines changed

src/views/components-demo/countTo.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@
2626
<input v-model.number="setDuration" type="number" name="durationInput">
2727
</label>
2828
<div class="startBtn example-btn" @click="start">
29-
开始
29+
Start
3030
</div>
3131
<div class="pause-resume-btn example-btn" @click="pauseResume">
32-
暂停/恢复
32+
pause/resume
3333
</div>
3434
<br>
3535
<label class="label" for="decimalsInput">decimals:

src/views/components-demo/jsonEditor.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<template>
22
<div class="components-container">
3-
<code>JsonEditor is base on <a href="https://github.com/codemirror/CodeMirror" target="_blank">CodeMirrorr</a> , lint base on json-lint </code>
3+
<code>Json-Editor is base on <a href="https://github.com/codemirror/CodeMirror" target="_blank">CodeMirrorr</a>. Lint
4+
base on <a
5+
href="https://github.com/codemirror/CodeMirror/blob/master/addon/lint/json-lint.js"
6+
target="_blank"
7+
>json-lint</a>.</code>
48
<div class="editor-container">
59
<json-editor ref="jsonEditor" v-model="value" />
610
</div>

src/views/components-demo/markdown.vue

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,45 @@
11
<template>
22
<div class="components-container">
33
<code>Markdown is based on
4-
<a href="https://github.com/nhnent/tui.editor" target="_blank">tui.editor</a> ,Simply encapsulated in Vue.
5-
<a target="_blank" href="https://panjiachen.github.io/vue-element-admin-site/feature/component/markdown-editor.html">
4+
<a href="https://github.com/nhnent/tui.editor" target="_blank">tui.editor</a> ,simply wrapped with Vue.
5+
<a
6+
target="_blank"
7+
href="https://panjiachen.github.io/vue-element-admin-site/feature/component/markdown-editor.html"
8+
>
69
Documentation </a>
710
</code>
811

912
<div class="editor-container">
1013
<el-tag class="tag-title">
1114
Basic:
1215
</el-tag>
13-
<markdown-editor v-model="content" height="300px" />
16+
<markdown-editor v-model="content1" height="300px" />
1417
</div>
1518

1619
<div class="editor-container">
1720
<el-tag class="tag-title">
1821
Markdown Mode:
1922
</el-tag>
20-
<markdown-editor ref="markdownEditor" v-model="content" :options="{hideModeSwitch:true,previewStyle:'tab'}" height="200px" />
23+
<markdown-editor ref="markdownEditor" v-model="content2" :options="{hideModeSwitch:true,previewStyle:'tab'}" height="200px" />
2124
</div>
2225

2326
<div class="editor-container">
2427
<el-tag class="tag-title">
2528
Customize Toolbar:
2629
</el-tag>
27-
<markdown-editor
28-
ref="markdownEditor"
29-
v-model="content"
30-
:options="{ toolbarItems: ['heading','bold','italic']}"
31-
/>
30+
<markdown-editor v-model="content3" :options="{ toolbarItems: ['heading','bold','italic']}" />
3231
</div>
3332

3433
<div class="editor-container">
3534
<el-tag class="tag-title">
3635
I18n:
3736
</el-tag>
38-
<el-alert :closable="false" title="You can change the language of the admin system to see the effect" type="success" />
39-
<markdown-editor v-model="content" :language="language" height="300px" />
37+
<el-alert
38+
:closable="false"
39+
title="You can change the language of the admin system to see the effect"
40+
type="success"
41+
/>
42+
<markdown-editor ref="markdownEditor" v-model="content4" :language="language" height="300px" />
4043
</div>
4144

4245
<el-button style="margin-top:80px;" type="primary" icon="el-icon-document" @click="getHtml">
@@ -62,7 +65,10 @@ export default {
6265
components: { MarkdownEditor },
6366
data() {
6467
return {
65-
content: content,
68+
content1: content,
69+
content2: content,
70+
content3: content,
71+
content4: content,
6672
html: '',
6773
languageTypeList: {
6874
'en': 'en_US',

0 commit comments

Comments
 (0)