Files
web_ylsa/web_vue/src/pages/notes/store.ts
2025-07-11 16:54:11 +08:00

46 lines
646 B
TypeScript

import { reactive } from "vue";
export const useNotes: {
id: string;
content: string;
preview: boolean;
toolbars: any[];
} = reactive({
id: "my-editor",
content: "",
preview: true,
toolbars: [
"bold",
"underline",
"italic",
"-",
"title",
"strikeThrough",
"sub",
"sup",
"quote",
"unorderedList",
"orderedList",
"task",
"-",
"codeRow",
"code",
"link",
"image",
"table",
"mermaid",
"katex",
"-",
"revoke",
"next",
"save",
0,
"=",
"pageFullscreen",
"fullscreen",
"preview",
"previewOnly",
"catalog",
],
});