(xmlStream, model)
| 22 | } |
| 23 | |
| 24 | render(xmlStream, model) { |
| 25 | xmlStream.openNode(this.tag, { |
| 26 | sb: model.sb || 0, |
| 27 | eb: model.eb || 0, |
| 28 | }); |
| 29 | if (model && model.hasOwnProperty('richText') && model.richText) { |
| 30 | const {r} = this.map; |
| 31 | model.richText.forEach(text => { |
| 32 | r.render(xmlStream, text); |
| 33 | }); |
| 34 | } else if (model) { |
| 35 | this.map.t.render(xmlStream, model.text); |
| 36 | } |
| 37 | xmlStream.closeNode(); |
| 38 | } |
| 39 | |
| 40 | parseOpen(node) { |
| 41 | const {name} = node; |