Allow XmlComponent to take strings and remove XmlUnit

This commit is contained in:
felipe
2017-03-09 19:50:33 +01:00
parent 4a2b8a1e04
commit 879b9163a3
11 changed files with 120 additions and 104 deletions

View File

@ -1,9 +1,11 @@
import { XmlUnitComponent } from "../xml-components";
import { XmlComponent } from "../xml-components";
export class Text extends XmlUnitComponent {
export class Text extends XmlComponent {
constructor(text: string) {
super("w:t");
this.root = text;
if (text) {
this.root.push(text);
}
}
}