From 5b582d45ba830a14b2ce3d1e8d2764c188b357a1 Mon Sep 17 00:00:00 2001 From: codecnmc <96507488+codecnmc@users.noreply.github.com> Date: Wed, 19 Oct 2022 17:35:46 +0800 Subject: [PATCH] Update numbering.md Long time to find a way to unident ,See the document can't resolve my problem,Source code analysis found that does not belong to the indent. --- docs/usage/numbering.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/docs/usage/numbering.md b/docs/usage/numbering.md index 6203c3bb4b..ac3dfccde5 100644 --- a/docs/usage/numbering.md +++ b/docs/usage/numbering.md @@ -86,3 +86,34 @@ topLevelP.setNumbering(concrete, 0); subP.setNumbering(concrete, 1); subSubP.setNumbering(concrete, 2); ``` + +## Unindent numbering + +Default:1. test + +After:1.test + +Use default numbering have indent,If you want unindent numbering + +How to custom number see the demo: +https://runkit.com/dolanmiu/docx-demo3 + +```ts + +enum LevelSuffix { + NOTHING = "nothing", + SPACE = "space", + TAB = "tab" +} + +// custom numbering +const levels=[ +{ + level: 0, + format: "decimal", + text: "%1.", + alignment: AlignmentType.START, + suffix: LevelSuffix.NOTHING, // Cancel intent +}] + +```