:feat: refine paragraph/run properties options
This commit is contained in:
@ -1,9 +1,9 @@
|
||||
import { ParagraphProperties } from "file/paragraph/properties";
|
||||
import { IParagraphStylePropertiesOptions, ParagraphProperties } from "file/paragraph/properties";
|
||||
import { XmlComponent } from "file/xml-components";
|
||||
|
||||
export class ParagraphPropertiesDefaults extends XmlComponent {
|
||||
constructor() {
|
||||
constructor(options?: IParagraphStylePropertiesOptions) {
|
||||
super("w:pPrDefault");
|
||||
this.root.push(new ParagraphProperties({}));
|
||||
this.root.push(new ParagraphProperties(options));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user