初始化项目文件
This commit is contained in:
45
web_vue/src/pages/notes/store.ts
Normal file
45
web_vue/src/pages/notes/store.ts
Normal file
@ -0,0 +1,45 @@
|
||||
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",
|
||||
],
|
||||
});
|
Reference in New Issue
Block a user