chore: use latest vue version (#1218)

This commit is contained in:
zazzaz 2021-01-07 20:24:44 +08:00 committed by GitHub
parent e01f3f8995
commit f7bd2ff710
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -166,7 +166,7 @@ export default {
goCodepen() { goCodepen() {
// since 2.6.2 use code rather than jsfiddle https://blog.codepen.io/documentation/api/prefill/ // since 2.6.2 use code rather than jsfiddle https://blog.codepen.io/documentation/api/prefill/
const { script, html, style } = this.codepen const { script, html, style } = this.codepen
const resourcesTpl = '<scr' + 'ipt src="//unpkg.com/vue@3.0.3/dist/vue.global.js"></scr' + 'ipt>' + const resourcesTpl = '<scr' + 'ipt src="//unpkg.com/vue@next"></scr' + 'ipt>' +
'\n<scr' + `ipt src="//unpkg.com/element-plus/lib/index.full.js"></scr` + 'ipt>' '\n<scr' + `ipt src="//unpkg.com/element-plus/lib/index.full.js"></scr` + 'ipt>'
let htmlTpl = `${resourcesTpl}\n<div id="app">\n${html.trim()}\n</div>` let htmlTpl = `${resourcesTpl}\n<div id="app">\n${html.trim()}\n</div>`
let cssTpl = `@import url("//unpkg.com/element-plus/lib/theme-chalk/index.css");\n${(style || '').trim()}\n` let cssTpl = `@import url("//unpkg.com/element-plus/lib/theme-chalk/index.css");\n${(style || '').trim()}\n`