Skip to content

Commit

Permalink
chore: remove useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
pubuzhixing8 committed Mar 21, 2023
1 parent 68cfca2 commit f53c6c5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion packages/src/components/leaves/leaves.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { isDecoratorRangeListEqual } from '../../utils/range-list';
[viewContext]="viewContext"
[viewContext]="viewContext"
*ngFor="let context of leafContexts; trackBy: trackBy"
></slate-leaf> `,
></slate-leaf>`,
changeDetection: ChangeDetectionStrategy.OnPush
})
export class SlateLeavesComponent extends ViewContainer<SlateLeafComponent> implements OnInit, AfterViewInit, OnChanges {
Expand Down
3 changes: 0 additions & 3 deletions packages/src/components/string/template.component.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
<!-- <ng-template #stringTemplate let-context="context" let-viewContext="viewContext">
<span editable-text data-slate-string="true">{{ context.text }}</span>
</ng-template> -->
<ng-template #compatStringTemplate let-context="context" let-viewContext="viewContext">
<!-- Compatible with Chinese input in Chrome with \n -->
<span editable-text data-slate-string="true"
Expand Down
3 changes: 0 additions & 3 deletions packages/src/components/string/template.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ import { Component, ChangeDetectionStrategy, ViewChild, TemplateRef } from '@ang
changeDetection: ChangeDetectionStrategy.OnPush
})
export class SlateStringTemplateComponent {
// @ViewChild('stringTemplate', { read: TemplateRef, static: true })
// stringTemplate: TemplateRef<any>;

@ViewChild('compatStringTemplate', { read: TemplateRef, static: true })
compatStringTemplate: TemplateRef<any>;

Expand Down

0 comments on commit f53c6c5

Please sign in to comment.