feat: 优化输入体验

This commit is contained in:
2021-10-06 18:14:45 +08:00
parent c7a60dfd67
commit 2048a89d7e
17 changed files with 118 additions and 175 deletions
+14 -1
View File
@@ -1,3 +1,5 @@
import { createNotation, notations as N } from "./notation";
// 新建段落
function createParagraph(initial) {
const p = {
@@ -12,5 +14,16 @@ function createParagraph(initial) {
}
return p;
}
function createParagraphWithNotations() {
return createParagraph({
notations: [
createNotation({ note: "0" }),
createNotation({ note: "0" }),
createNotation({ note: "0" }),
createNotation({ note: "0" }),
createNotation({ note: N.separator }),
],
});
}
export { createParagraph };
export { createParagraph, createParagraphWithNotations };