feat: 优化输入体验
This commit is contained in:
+14
-1
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user