mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-12 15:46:29 +08:00
19 lines
421 B
TypeScript
19 lines
421 B
TypeScript
import type { PluginContext } from '@affine/sdk/entry';
|
|
import ElementPlus from 'element-plus';
|
|
import { createApp } from 'vue';
|
|
|
|
import App from './app.vue';
|
|
|
|
export const entry = (context: PluginContext) => {
|
|
context.register('headerItem', div => {
|
|
const app = createApp(App);
|
|
app.use(ElementPlus);
|
|
app.mount(div, false, false);
|
|
return () => {
|
|
app.unmount();
|
|
};
|
|
});
|
|
|
|
return () => {};
|
|
};
|