19 lines
402 B
TypeScript
19 lines
402 B
TypeScript
import view from "./index.vue";
|
|
import { WebToolkit } from "timi-web";
|
|
import type { Article } from "./types";
|
|
|
|
export type {
|
|
Article,
|
|
ArticleContentType,
|
|
Attachment,
|
|
UploadResult
|
|
} from "./types";
|
|
|
|
export type ArticleEditorExpose = {
|
|
submit: () => Promise<Article>;
|
|
getPendingMediaCount: () => number;
|
|
};
|
|
|
|
export const ArticleEditor = WebToolkit.withInstall(view);
|
|
export default ArticleEditor;
|