Skip to content

Commit 4452f92

Browse files
committed
chore: remove useless code
1 parent afc99b0 commit 4452f92

File tree

3 files changed

+1
-7
lines changed

3 files changed

+1
-7
lines changed

packages/src/components/leaves/leaves.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { isDecoratorRangeListEqual } from '../../utils/range-list';
2222
[viewContext]="viewContext"
2323
[viewContext]="viewContext"
2424
*ngFor="let context of leafContexts; trackBy: trackBy"
25-
></slate-leaf> `,
25+
></slate-leaf>`,
2626
changeDetection: ChangeDetectionStrategy.OnPush
2727
})
2828
export class SlateLeavesComponent extends ViewContainer<SlateLeafComponent> implements OnInit, AfterViewInit, OnChanges {

packages/src/components/string/template.component.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
<!-- <ng-template #stringTemplate let-context="context" let-viewContext="viewContext">
2-
<span editable-text data-slate-string="true">{{ context.text }}</span>
3-
</ng-template> -->
41
<ng-template #compatStringTemplate let-context="context" let-viewContext="viewContext">
52
<!-- Compatible with Chinese input in Chrome with \n -->
63
<span editable-text data-slate-string="true"

packages/src/components/string/template.component.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ import { Component, ChangeDetectionStrategy, ViewChild, TemplateRef } from '@ang
66
changeDetection: ChangeDetectionStrategy.OnPush
77
})
88
export class SlateStringTemplateComponent {
9-
// @ViewChild('stringTemplate', { read: TemplateRef, static: true })
10-
// stringTemplate: TemplateRef<any>;
11-
129
@ViewChild('compatStringTemplate', { read: TemplateRef, static: true })
1310
compatStringTemplate: TemplateRef<any>;
1411

0 commit comments

Comments
 (0)