#713 Update chinese demo and refactor

This commit is contained in:
Dolan
2021-03-09 01:37:22 +00:00
parent 98253c3445
commit e98fe5921c
5 changed files with 65 additions and 11 deletions

View File

@ -13,11 +13,11 @@ export class DocumentDefaults extends XmlComponent {
private readonly runPropertiesDefaults: RunPropertiesDefaults;
private readonly paragraphPropertiesDefaults: ParagraphPropertiesDefaults;
constructor(options?: IDocumentDefaultsOptions) {
constructor(options: IDocumentDefaultsOptions) {
super("w:docDefaults");
this.runPropertiesDefaults = new RunPropertiesDefaults(options && options.run);
this.paragraphPropertiesDefaults = new ParagraphPropertiesDefaults(options && options.paragraph);
this.runPropertiesDefaults = new RunPropertiesDefaults(options.run);
this.paragraphPropertiesDefaults = new ParagraphPropertiesDefaults(options.paragraph);
this.root.push(this.runPropertiesDefaults);
this.root.push(this.paragraphPropertiesDefaults);