import { readFileSync } from 'node:fs'; import { join } from 'node:path'; import { mount } from './app'; const template = readFileSync(join(__dirname, '../../../static/template/default/index.html'), 'utf-8'); const style = readFileSync(join(__dirname, '../../../static/style/default/index.css'), 'utf-8'); module.exports = Editor.Panel.define({ template, style, $: { app: '#app' }, ready() { mount(this.$.app); }, close() { /* Vue 卸载随面板进程退出自动清理 */ }, });