Skip to content

Commit 00b7d19

Browse files
author
黄书伟
committed
支持实例在jsfiddle 中访问
1 parent 761d484 commit 00b7d19

File tree

2 files changed

+7
-19
lines changed

2 files changed

+7
-19
lines changed

examples/comp/DemoBox.vue

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,10 @@
6969
7070
const {script, html, style} = this.jsfiddle;
7171
72-
const scriptTpl = '<script src="//unpkg.com/vue/dist/vue.js"></scr' + 'ipt>' +
73-
'\n<scr' + `ipt src="//unpkg.com/vue-easytable/umd/js/index.js"></scr` + 'ipt>';
72+
const scriptTpl = [
73+
'<script src="//unpkg.com/vue/dist/vue.js"></scr' + 'ipt>',
74+
'<script src="//unpkg.com/vue-easytable/umd/js/index.js"></scr' + 'ipt>',
75+
].join('\n');
7476
7577
let jsTpl = (script || '').replace(/export default/, 'var Main =').replace(/import Vue from 'vue'/,'').trim();
7678
@@ -86,22 +88,6 @@
8688
panel_css: 1
8789
};
8890
89-
90-
/* const resourcesTpl = '<script src="//unpkg.com/vue/dist/vue.js"></scr' + 'ipt>' +
91-
'\n<scr' + `ipt src="//unpkg.com/element-ui@${ version }/lib/index.js"></scr` + 'ipt>';
92-
let jsTpl = (script || '').replace(/export default/, 'var Main =').trim();
93-
let htmlTpl = `${resourcesTpl}\n<div id="app">\n${html.trim()}\n</div>`;
94-
let cssTpl = `@import url("//unpkg.com/element-ui@${ version }/lib/theme-default/index.css");\n${(style || '').trim()}\n`;
95-
jsTpl = jsTpl
96-
? jsTpl + '\nvar Ctor = Vue.extend(Main)\nnew Ctor().$mount(\'#app\')'
97-
: 'new Vue().$mount(\'#app\')';
98-
const data = {
99-
js: jsTpl,
100-
css: cssTpl,
101-
html: htmlTpl,
102-
panel_js: 3,
103-
panel_css: 1
104-
};*/
10591
const form = document.getElementById('fiddle-form') || document.createElement('form');
10692
form.innerHTML = '';
10793
const node = document.createElement('textarea');

examples/css/index.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ code {
613613
margin-top: 20px;
614614
margin-bottom: 50px;
615615
border-top: 1px dotted #e9e9e9;
616-
border-bottom: 1px solid #e9e9e9;
616+
/*border-bottom: 1px solid #e9e9e9;*/
617617
position: relative;
618618
}
619619

@@ -624,10 +624,12 @@ code {
624624
cursor: pointer;
625625
color: #9dbbff;
626626
font-size: 14px;
627+
border-bottom: 1px solid #e9e9e9;
627628
}
628629

629630
.example-codeHighlight-showCode:hover {
630631
color: #578afd;
632+
box-shadow:0 4px 6px -6px #555;
631633
}
632634

633635
.example-codeHighlight-tools{

0 commit comments

Comments
 (0)