ngx-rs-ant 2.2.8 → 2.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/word/section/section.component.mjs +1 -5
- package/esm2020/word/word-designer/word-designer.component.mjs +5 -1
- package/esm2020/word/word-editor/word-editor.component.mjs +5 -1
- package/fesm2015/ngx-rs-ant.mjs +8 -4
- package/fesm2015/ngx-rs-ant.mjs.map +1 -1
- package/fesm2020/ngx-rs-ant.mjs +8 -4
- package/fesm2020/ngx-rs-ant.mjs.map +1 -1
- package/package.json +1 -1
- package/word/section/section.component.d.ts +0 -1
- package/word/word-designer/word-designer.component.d.ts +1 -0
- package/word/word-editor/word-editor.component.d.ts +1 -0
package/fesm2020/ngx-rs-ant.mjs
CHANGED
|
@@ -4496,10 +4496,6 @@ class SectionComponent {
|
|
|
4496
4496
|
this.pasteMode = false;
|
|
4497
4497
|
this.readonly = false;
|
|
4498
4498
|
}
|
|
4499
|
-
ngOnDestroy() {
|
|
4500
|
-
this.service.valueUpdated.unsubscribe();
|
|
4501
|
-
this.service.valueChanged.unsubscribe();
|
|
4502
|
-
}
|
|
4503
4499
|
}
|
|
4504
4500
|
SectionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SectionComponent, deps: [{ token: SectionService }, { token: PtPipe }], target: i0.ɵɵFactoryTarget.Component });
|
|
4505
4501
|
SectionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: SectionComponent, selector: "rs-section", inputs: { section: "section", editMode: "editMode", pasteMode: "pasteMode", readonly: "readonly" }, host: { properties: { "style": "this._style" } }, providers: [PtPipe], ngImport: i0, template: "<div *ngIf=\"section.header\">\r\n <ng-container *ngFor=\"let node of section.header\">\r\n <rs-node [node]=\"node\" [editMode]=\"editMode\" [pasteMode]=\"pasteMode\" [readonly]=\"readonly\"></rs-node>\r\n </ng-container>\r\n</div>\r\n<ng-container *ngFor=\"let node of section.body\">\r\n <rs-node [node]=\"node\" [editMode]=\"editMode\" [pasteMode]=\"pasteMode\" [readonly]=\"readonly\"></rs-node>\r\n</ng-container>\r\n<div *ngIf=\"section.footer\">\r\n <ng-container *ngFor=\"let node of section.footer\">\r\n <rs-node [node]=\"node\" [editMode]=\"editMode\" [pasteMode]=\"pasteMode\" [readonly]=\"readonly\"></rs-node>\r\n </ng-container>\r\n</div>\r\n", styles: [":host{display:block;background-color:#fff;margin-bottom:8px}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: NodeComponent, selector: "rs-node", inputs: ["node", "editMode", "pasteMode", "readonly"] }] });
|
|
@@ -4762,6 +4758,10 @@ class WordDesignerComponent {
|
|
|
4762
4758
|
this.loading = false;
|
|
4763
4759
|
});
|
|
4764
4760
|
}
|
|
4761
|
+
ngOnDestroy() {
|
|
4762
|
+
this.service.valueUpdated.unsubscribe();
|
|
4763
|
+
this.service.valueChanged.unsubscribe();
|
|
4764
|
+
}
|
|
4765
4765
|
loadTemplateAndConfig(response) {
|
|
4766
4766
|
this.sections = response.sections || [];
|
|
4767
4767
|
if (this.sections.length === 0) {
|
|
@@ -5024,6 +5024,10 @@ class WordEditorComponent {
|
|
|
5024
5024
|
this.loading = false;
|
|
5025
5025
|
});
|
|
5026
5026
|
}
|
|
5027
|
+
ngOnDestroy() {
|
|
5028
|
+
this.service.valueUpdated.unsubscribe();
|
|
5029
|
+
this.service.valueChanged.unsubscribe();
|
|
5030
|
+
}
|
|
5027
5031
|
pullTemplate() {
|
|
5028
5032
|
if (confirm('该操作会清除已录入的数据,确定重新拉取模板配置?')) {
|
|
5029
5033
|
this.loading = true;
|