[add] vue

This commit is contained in:
建喵 2022-04-09 11:21:04 +08:00
parent 0fb4ba3740
commit e7255001be
2 changed files with 11411 additions and 9469 deletions

20685
lib/vue.js

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,6 @@
const PACKAGE_NAME = "uuidconvert"; const PACKAGE_NAME = "uuidconvert";
const fs = require("fs"); const fs = require("fs");
const vue = Editor.require(`packages://${PACKAGE_NAME}/lib/vue.js`);
Editor.Panel.extend({ Editor.Panel.extend({
style: fs.readFileSync(Editor.url(`packages://${PACKAGE_NAME}/static/style/default/index.css`), 'utf-8') style: fs.readFileSync(Editor.url(`packages://${PACKAGE_NAME}/static/style/default/index.css`), 'utf-8')
@ -13,7 +14,7 @@ Editor.Panel.extend({
}, },
ready() { ready() {
this.app = new Vue({ this.app = new vue({
el: this.$app, el: this.$app,
created: function () { created: function () {