added numbering files

This commit is contained in:
Dolan Miu
2016-05-19 22:42:23 +01:00
parent 49e50fb6e3
commit b47eaf739e
4 changed files with 166 additions and 1 deletions

View File

@ -1,4 +1,6 @@
import * as _ from "lodash";
import {ParagraphProperties} from "../paragraph/properties";
import {RunProperties} from "../run/properties";
export abstract class BaseXmlComponent {
protected rootKey: string;
@ -54,9 +56,15 @@ export abstract class XmlAttributeComponent extends BaseXmlComponent {
protected root: Object;
private xmlKeys: Object;
constructor(xmlKeys: Object) {
constructor(xmlKeys: Object, properties: Object) {
super("_attr");
this.xmlKeys = xmlKeys;
this.root = properties
if (!properties) {
this.root = {};
}
}
replaceKey(): void {