From e5de98d45d37fd99263c7caebf752b918625830f Mon Sep 17 00:00:00 2001 From: cipchk Date: Tue, 1 Aug 2023 16:48:37 +0800 Subject: [PATCH 1/2] style(*): enabled self-closing-tags --- .eslintrc.js | 4 +- .../avatar-list/avatar-list-item.component.ts | 2 +- .../avatar-list/avatar-list.component.html | 11 ++-- packages/abc/avatar-list/avatar-list.spec.ts | 19 ++----- .../abc/count-down/count-down.component.ts | 2 +- packages/abc/count-down/count-down.spec.ts | 4 +- .../abc/date-picker/range.directive.spec.ts | 2 +- packages/abc/ellipsis/ellipsis.component.html | 4 +- .../abc/error-collect/error-collect.spec.ts | 4 +- .../abc/exception/exception.component.html | 2 +- .../footer-toolbar.component.html | 4 +- .../abc/footer-toolbar/footer-toolbar.spec.ts | 2 +- .../full-content/full-content.component.ts | 2 +- .../global-footer-item.component.ts | 2 +- .../global-footer.component.html | 4 +- packages/abc/loading/loading.component.html | 2 +- packages/abc/media/media.component.ts | 2 +- packages/abc/media/media.spec.ts | 7 +-- .../notice-icon-tab.component.html | 12 ++--- .../notice-icon/notice-icon.component.html | 11 ++-- packages/abc/notice-icon/notice-icon.spec.ts | 2 +- .../page-header/page-header.component.html | 14 +++--- packages/abc/page-header/page-header.spec.ts | 10 +--- packages/abc/pdf/pdf.component.ts | 2 +- packages/abc/pdf/pdf.spec.ts | 2 +- packages/abc/qr/qr.spec.ts | 2 +- .../abc/quick-menu/quick-menu.component.html | 2 +- packages/abc/quick-menu/quick-menu.spec.ts | 2 +- packages/abc/result/result.component.html | 2 +- packages/abc/result/result.spec.ts | 2 +- .../abc/reuse-tab/reuse-tab.component.html | 4 +- .../abc/reuse-tab/reuse-tab.component.spec.ts | 7 ++- packages/abc/se/se-container.component.ts | 4 +- packages/abc/se/se.component.html | 2 +- packages/abc/sg/sg-container.component.ts | 2 +- packages/abc/sg/sg.component.ts | 2 +- packages/abc/sg/sg.spec.ts | 2 +- packages/abc/st/st-filter.component.ts | 8 +-- packages/abc/st/st-td.component.html | 18 +++---- packages/abc/st/st.component.html | 40 +++++---------- packages/abc/st/test/base.spec.ts | 3 +- packages/abc/sv/sv-container.component.ts | 4 +- packages/abc/sv/sv-value.component.ts | 2 +- packages/abc/sv/sv.component.html | 2 +- .../abc/tag-select/tag-select.component.html | 2 +- packages/chart/bar/bar.component.ts | 2 +- packages/chart/bar/bar.spec.ts | 2 +- packages/chart/card/card.component.html | 2 +- packages/chart/card/card.spec.ts | 3 +- .../chart/chart-echarts/echarts.component.ts | 2 +- packages/chart/chart-echarts/echarts.spec.ts | 2 +- packages/chart/custom/custom.component.ts | 2 +- packages/chart/custom/custom.spec.ts | 2 +- packages/chart/gauge/gauge.component.ts | 2 +- packages/chart/gauge/gauge.spec.ts | 2 +- packages/chart/mini-area/mini-area.spec.ts | 2 +- packages/chart/mini-bar/mini-bar.spec.ts | 2 +- .../chart/mini-progress/mini-progress.spec.ts | 3 +- .../chart/number-info/number-info.spec.ts | 2 +- packages/chart/pie/pie.component.html | 4 +- packages/chart/pie/pie.spec.ts | 4 +- packages/chart/radar/radar.component.html | 2 +- packages/chart/radar/radar.spec.ts | 3 +- packages/chart/single-bar/single-bar.spec.ts | 2 +- .../chart/tag-cloud/tag-cloud.component.ts | 2 +- packages/chart/tag-cloud/tag-cloud.spec.ts | 2 +- packages/chart/timeline/timeline.component.ts | 2 +- packages/chart/timeline/timeline.spec.ts | 3 +- packages/chart/trend/trend.component.ts | 2 +- packages/chart/trend/trend.spec.ts | 2 +- packages/chart/water-wave/water-wave.spec.ts | 2 +- packages/form/spec/base.spec.ts | 2 +- packages/form/spec/form.spec.ts | 2 +- packages/form/src/sf-item-wrap.component.html | 2 +- packages/form/src/sf-item.component.ts | 4 +- packages/form/src/sf.component.html | 4 +- .../form/src/widgets/array/array.widget.html | 2 +- .../src/widgets/boolean/boolean.widget.html | 3 +- .../src/widgets/cascader/cascader.widget.html | 3 +- .../src/widgets/checkbox/checkbox.widget.html | 9 ++-- .../form/src/widgets/date/date.widget.html | 10 ++-- .../src/widgets/number/number.widget.html | 3 +- .../src/widgets/object/object.widget.html | 6 +-- .../form/src/widgets/rate/rate.widget.html | 2 +- .../src/widgets/select/select.widget.html | 4 +- .../src/widgets/slider/slider.widget.html | 3 +- .../src/widgets/string/string.widget.html | 2 +- packages/form/src/widgets/tag/tag.widget.html | 4 +- .../form/src/widgets/time/time.widget.html | 3 +- .../src/widgets/transfer/transfer.widget.html | 3 +- .../tree-select/tree-select.widget.html | 3 +- .../widgets-third/markdown/markdown.widget.ts | 7 +-- .../widgets-third/tinymce/tinymce.widget.ts | 2 +- packages/mock/src/mock.interceptor.spec.ts | 2 +- packages/theme/layout-default/index.en-US.md | 14 +++--- packages/theme/layout-default/index.zh-CN.md | 14 +++--- .../layout-header-item.component.ts | 2 +- .../layout-default/layout-header.component.ts | 8 +-- .../layout-default/layout-nav.component.html | 12 ++--- .../layout-nav.component.spec.ts | 2 +- .../layout-default/layout-top-menu-item.ts | 2 +- .../theme/layout-default/layout.component.ts | 12 ++--- .../setting-drawer-item.component.html | 6 +-- .../setting-drawer.component.html | 50 +++++++++---------- .../theme/theme-btn/theme-btn.component.html | 2 +- packages/util/browser/index.en-US.md | 2 +- packages/util/browser/index.zh-CN.md | 4 +- packages/util/browser/is-empty.ts | 4 +- src/app/app.component.ts | 2 +- src/app/layout/header/header.component.html | 8 +-- src/app/layout/layout.component.ts | 10 ++-- .../validator/validator.component.html | 10 ++-- src/app/routes/home/home.component.html | 10 +--- .../code-box/code-box.component.html | 4 +- .../components/content/content.component.html | 6 +-- .../components/docs/docs.component.html | 6 +-- .../components/footer/footer.component.html | 2 +- src/dev/home/home.component.ts | 2 +- src/dev/layout.component.ts | 8 +-- src/dev/lazy/layout.component.ts | 4 +- src/dev/list/layout.component.ts | 4 +- src/dev/pages/page.component.ts | 2 +- 122 files changed, 265 insertions(+), 336 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index ec272ae71..659960753 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -178,7 +178,9 @@ module.exports = { { files: ['*.html'], extends: ['plugin:@angular-eslint/template/recommended'], - rules: {} + rules: { + "@angular-eslint/template/prefer-self-closing-tags": "error" + } }, { files: ['*.html'], diff --git a/packages/abc/avatar-list/avatar-list-item.component.ts b/packages/abc/avatar-list/avatar-list-item.component.ts index 942e4add5..f90a9f4b2 100644 --- a/packages/abc/avatar-list/avatar-list-item.component.ts +++ b/packages/abc/avatar-list/avatar-list-item.component.ts @@ -3,7 +3,7 @@ import { ChangeDetectionStrategy, Component, Input, ViewEncapsulation } from '@a @Component({ selector: 'avatar-list-item, [avatar-list-item]', exportAs: 'avatarListItem', - template: ``, + template: ``, preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None diff --git a/packages/abc/avatar-list/avatar-list.component.html b/packages/abc/avatar-list/avatar-list.component.html index baf6e43d4..0e724cbbe 100644 --- a/packages/abc/avatar-list/avatar-list.component.html +++ b/packages/abc/avatar-list/avatar-list.component.html @@ -8,15 +8,10 @@ [nzText]="i.text" [nzIcon]="i.icon" [nzSize]="avatarSize" - > - + /> +
  • - +
  • diff --git a/packages/abc/avatar-list/avatar-list.spec.ts b/packages/abc/avatar-list/avatar-list.spec.ts index 1fd428217..6b8e753ac 100644 --- a/packages/abc/avatar-list/avatar-list.spec.ts +++ b/packages/abc/avatar-list/avatar-list.spec.ts @@ -68,20 +68,11 @@ describe('abc: avatar-list', () => { @Component({ template: ` - - - - - + + + + + ` }) diff --git a/packages/abc/count-down/count-down.component.ts b/packages/abc/count-down/count-down.component.ts index 976f72f54..233ac2bc9 100644 --- a/packages/abc/count-down/count-down.component.ts +++ b/packages/abc/count-down/count-down.component.ts @@ -14,7 +14,7 @@ import { CountdownComponent, CountdownConfig, CountdownEvent } from 'ngx-countdo @Component({ selector: 'count-down', exportAs: 'countDown', - template: ` `, + template: ``, preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None diff --git a/packages/abc/count-down/count-down.spec.ts b/packages/abc/count-down/count-down.spec.ts index 095b4c26f..d746d318e 100644 --- a/packages/abc/count-down/count-down.spec.ts +++ b/packages/abc/count-down/count-down.spec.ts @@ -51,10 +51,10 @@ describe('abc: count-down', () => { @Component({ template: `
    - +
    - +
    ` }) diff --git a/packages/abc/date-picker/range.directive.spec.ts b/packages/abc/date-picker/range.directive.spec.ts index 25d5ba7bf..686a4e4ab 100644 --- a/packages/abc/date-picker/range.directive.spec.ts +++ b/packages/abc/date-picker/range.directive.spec.ts @@ -117,7 +117,7 @@ describe('abc: date-picker: nz-range-picker[extend]', () => { extend [(ngModelEnd)]="i.end" [shortcut]="shortcut" - > + /> ` }) class TestComponent { diff --git a/packages/abc/ellipsis/ellipsis.component.html b/packages/abc/ellipsis/ellipsis.component.html index e5a7b03a6..dfdc9fa0b 100644 --- a/packages/abc/ellipsis/ellipsis.component.html +++ b/packages/abc/ellipsis/ellipsis.component.html @@ -1,4 +1,4 @@ -
    +
    - +
    diff --git a/packages/abc/error-collect/error-collect.spec.ts b/packages/abc/error-collect/error-collect.spec.ts index 091406de3..840dcdcc9 100644 --- a/packages/abc/error-collect/error-collect.spec.ts +++ b/packages/abc/error-collect/error-collect.spec.ts @@ -80,7 +80,7 @@ describe('abc: error-collect', () => { it('should be throw [No found form element] if no form element', () => { expect(() => { - TestBed.overrideTemplate(TestComponent, ``) + TestBed.overrideTemplate(TestComponent, ``) .createComponent(TestComponent) .detectChanges(); }).toThrowError('No found form element'); @@ -95,7 +95,7 @@ describe('abc: error-collect', () => { - + ` }) diff --git a/packages/abc/exception/exception.component.html b/packages/abc/exception/exception.component.html index 919e0260a..711fe8a2e 100644 --- a/packages/abc/exception/exception.component.html +++ b/packages/abc/exception/exception.component.html @@ -6,7 +6,7 @@

    - +
    diff --git a/packages/abc/footer-toolbar/footer-toolbar.spec.ts b/packages/abc/footer-toolbar/footer-toolbar.spec.ts index d6c799c1b..2d6139dd4 100644 --- a/packages/abc/footer-toolbar/footer-toolbar.spec.ts +++ b/packages/abc/footer-toolbar/footer-toolbar.spec.ts @@ -58,7 +58,7 @@ describe('abc: footer-toolbar', () => { }); @Component({ - template: `
    ` + template: `
    ` }) class TestComponent { errorCollect = true; diff --git a/packages/abc/full-content/full-content.component.ts b/packages/abc/full-content/full-content.component.ts index e38215e25..dd3675fe7 100644 --- a/packages/abc/full-content/full-content.component.ts +++ b/packages/abc/full-content/full-content.component.ts @@ -32,7 +32,7 @@ const hideTitleCls = `full-content__hidden-title`; @Component({ selector: 'full-content', exportAs: 'fullContent', - template: ` `, + template: ` `, host: { '[class.full-content]': 'true', '[style.height.px]': '_height' diff --git a/packages/abc/global-footer/global-footer-item.component.ts b/packages/abc/global-footer/global-footer-item.component.ts index 3ada5495e..ead0a6e38 100644 --- a/packages/abc/global-footer/global-footer-item.component.ts +++ b/packages/abc/global-footer/global-footer-item.component.ts @@ -5,7 +5,7 @@ import { BooleanInput, InputBoolean } from '@delon/util/decorator'; @Component({ selector: 'global-footer-item', exportAs: 'globalFooterItem', - template: ` `, + template: ` `, preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None diff --git a/packages/abc/global-footer/global-footer.component.html b/packages/abc/global-footer/global-footer.component.html index 08de652c4..b7cd71f70 100644 --- a/packages/abc/global-footer/global-footer.component.html +++ b/packages/abc/global-footer/global-footer.component.html @@ -1,9 +1,9 @@ diff --git a/packages/abc/loading/loading.component.html b/packages/abc/loading/loading.component.html index 0c7347dc8..10a7170a1 100644 --- a/packages/abc/loading/loading.component.html +++ b/packages/abc/loading/loading.component.html @@ -1,6 +1,6 @@
    - +
    diff --git a/packages/abc/media/media.component.ts b/packages/abc/media/media.component.ts index 715d787a0..efd84254f 100644 --- a/packages/abc/media/media.component.ts +++ b/packages/abc/media/media.component.ts @@ -31,7 +31,7 @@ export type MediaType = 'html5' | 'youtube' | 'video' | 'audio'; @Component({ selector: 'media', exportAs: 'mediaComponent', - template: ``, + template: ``, host: { '[style.display]': `'block'` }, diff --git a/packages/abc/media/media.spec.ts b/packages/abc/media/media.spec.ts index d25e4316c..93dfc038e 100644 --- a/packages/abc/media/media.spec.ts +++ b/packages/abc/media/media.spec.ts @@ -103,9 +103,7 @@ describe('abc: media', () => { }); @Component({ - template: ` - - ` + template: ` ` }) class TestComponent { @ViewChild('comp') comp!: MediaComponent; @@ -116,7 +114,6 @@ class TestComponent { ready(): void {} } @Component({ - template: ` - ` + template: ` ` }) class TestCustomVideoComponent extends TestComponent {} diff --git a/packages/abc/notice-icon/notice-icon-tab.component.html b/packages/abc/notice-icon/notice-icon-tab.component.html index d49ec99f1..d81f604bd 100644 --- a/packages/abc/notice-icon/notice-icon-tab.component.html +++ b/packages/abc/notice-icon/notice-icon-tab.component.html @@ -12,18 +12,18 @@ - {{ - item.title - }} + + {{ item.title }} +
    {{ item.extra }}
    - {{ - item.description - }} + + {{ item.description }} +
    {{ item.datetime }}
    diff --git a/packages/abc/notice-icon/notice-icon.component.html b/packages/abc/notice-icon/notice-icon.component.html index 2a596a4e2..9a4fa89c0 100644 --- a/packages/abc/notice-icon/notice-icon.component.html +++ b/packages/abc/notice-icon/notice-icon.component.html @@ -4,7 +4,7 @@
    - +
    - +
    - + diff --git a/packages/abc/notice-icon/notice-icon.spec.ts b/packages/abc/notice-icon/notice-icon.spec.ts index b2e99a29e..2f1d7a2f7 100644 --- a/packages/abc/notice-icon/notice-icon.spec.ts +++ b/packages/abc/notice-icon/notice-icon.spec.ts @@ -137,7 +137,7 @@ describe('abc: notice-icon', () => { (clear)="clear($event)" [(popoverVisible)]="popoverVisible" (popoverVisibleChange)="popupVisibleChange($event)" - > + /> ` }) class TestComponent { diff --git a/packages/abc/page-header/page-header.component.html b/packages/abc/page-header/page-header.component.html index 52cb9dcb9..81fe8575b 100644 --- a/packages/abc/page-header/page-header.component.html +++ b/packages/abc/page-header/page-header.component.html @@ -1,5 +1,5 @@ - +
    diff --git a/packages/abc/page-header/page-header.spec.ts b/packages/abc/page-header/page-header.spec.ts index 1a9c9449b..3dc964338 100644 --- a/packages/abc/page-header/page-header.spec.ts +++ b/packages/abc/page-header/page-header.spec.ts @@ -463,13 +463,7 @@ class TestComponent extends TestBaseComponent {} @Component({ template: ` - + ` }) class TestAutoBreadcrumbComponent extends TestBaseComponent {} @@ -483,7 +477,7 @@ class TestAutoBreadcrumbComponent extends TestBaseComponent {} [homeI18n]="homeI18n" [homeLink]="homeLink" [autoBreadcrumb]="autoBreadcrumb" - > + /> ` }) class TestI18nComponent extends TestBaseComponent {} diff --git a/packages/abc/pdf/pdf.component.ts b/packages/abc/pdf/pdf.component.ts index 6a7ea91ba..be89dc1bb 100644 --- a/packages/abc/pdf/pdf.component.ts +++ b/packages/abc/pdf/pdf.component.ts @@ -43,7 +43,7 @@ const BORDER_WIDTH = 9; selector: 'pdf', exportAs: 'pdf', template: ` - +
    diff --git a/packages/abc/pdf/pdf.spec.ts b/packages/abc/pdf/pdf.spec.ts index db5f4e691..dde97b4ca 100644 --- a/packages/abc/pdf/pdf.spec.ts +++ b/packages/abc/pdf/pdf.spec.ts @@ -44,7 +44,7 @@ describe('abc: pdf', () => { }); @Component({ - template: ` ` + template: ` ` }) class TestComponent { @ViewChild('comp') comp!: PdfComponent; diff --git a/packages/abc/qr/qr.spec.ts b/packages/abc/qr/qr.spec.ts index 154ffcdfd..b475a0188 100644 --- a/packages/abc/qr/qr.spec.ts +++ b/packages/abc/qr/qr.spec.ts @@ -104,7 +104,7 @@ describe('abc: qr', () => { [padding]="padding" [size]="size" (change)="change($event)" - > + /> ` }) class TestComponent { diff --git a/packages/abc/quick-menu/quick-menu.component.html b/packages/abc/quick-menu/quick-menu.component.html index e2a323d5d..e3342dbca 100644 --- a/packages/abc/quick-menu/quick-menu.component.html +++ b/packages/abc/quick-menu/quick-menu.component.html @@ -6,5 +6,5 @@ - + diff --git a/packages/abc/quick-menu/quick-menu.spec.ts b/packages/abc/quick-menu/quick-menu.spec.ts index c978a149f..9389d1cb4 100644 --- a/packages/abc/quick-menu/quick-menu.spec.ts +++ b/packages/abc/quick-menu/quick-menu.spec.ts @@ -81,7 +81,7 @@ describe('abc: quick-menu', () => { [borderColor]="borderColor" [expand]="expand" (expandChange)="expandChange()" - > + /> ` }) class TestComponent { diff --git a/packages/abc/result/result.component.html b/packages/abc/result/result.component.html index e5a1aa659..1902b77f1 100644 --- a/packages/abc/result/result.component.html +++ b/packages/abc/result/result.component.html @@ -11,5 +11,5 @@ {{ extra }}
    - +
    diff --git a/packages/abc/result/result.spec.ts b/packages/abc/result/result.spec.ts index 475349fe4..b3ea230b8 100644 --- a/packages/abc/result/result.spec.ts +++ b/packages/abc/result/result.spec.ts @@ -104,7 +104,7 @@ describe('abc: result', () => { @Component({ template: ` - +

    titleTpl

    descriptionTpl

    extraTpl

    diff --git a/packages/abc/reuse-tab/reuse-tab.component.html b/packages/abc/reuse-tab/reuse-tab.component.html index 6266a891f..8027db9e8 100644 --- a/packages/abc/reuse-tab/reuse-tab.component.html +++ b/packages/abc/reuse-tab/reuse-tab.component.html @@ -20,7 +20,7 @@ *ngIf="titleRender; else defaultTitle" [ngTemplateOutlet]="titleRender" [ngTemplateOutletContext]="{ $implicit: i }" - > + /> {{ i.title }} @@ -28,4 +28,4 @@ - + diff --git a/packages/abc/reuse-tab/reuse-tab.component.spec.ts b/packages/abc/reuse-tab/reuse-tab.component.spec.ts index 0210d123d..0ba445f44 100644 --- a/packages/abc/reuse-tab/reuse-tab.component.spec.ts +++ b/packages/abc/reuse-tab/reuse-tab.component.spec.ts @@ -839,7 +839,7 @@ describe('abc: reuse-tab', () => { d e leave - + ` }) class AppComponent {} @@ -866,9 +866,8 @@ class AppComponent {} [canClose]="canClose" (change)="change($event)" (close)="close($event)" - > - -
    + /> +
    {{ i.url }} ` }) diff --git a/packages/abc/se/se-container.component.ts b/packages/abc/se/se-container.component.ts index 39b7e5985..82b5f7c32 100644 --- a/packages/abc/se/se-container.component.ts +++ b/packages/abc/se/se-container.component.ts @@ -26,7 +26,7 @@ import { SEErrorRefresh, SELayout } from './se.types';
    {{ title }}
    - + `, host: { '[class.ant-row]': `true`, @@ -119,7 +119,7 @@ export class SEContainerComponent { @Component({ selector: 'se-title, [se-title]', exportAs: 'seTitle', - template: '', + template: '', host: { '[class.se__title]': 'true' }, diff --git a/packages/abc/se/se.component.html b/packages/abc/se/se.component.html index 1bb83ebed..78aa42f63 100644 --- a/packages/abc/se/se.component.html +++ b/packages/abc/se/se.component.html @@ -24,7 +24,7 @@
    - +
    diff --git a/packages/abc/sg/sg-container.component.ts b/packages/abc/sg/sg-container.component.ts index ae260975e..2227f6e37 100644 --- a/packages/abc/sg/sg-container.component.ts +++ b/packages/abc/sg/sg-container.component.ts @@ -7,7 +7,7 @@ import { InputNumber, NumberInput } from '@delon/util/decorator'; @Component({ selector: 'sg-container, [sg-container]', exportAs: 'sgContainer', - template: ` `, + template: ` `, host: { '[style.margin-left.px]': 'marginValue', '[style.margin-right.px]': 'marginValue', diff --git a/packages/abc/sg/sg.component.ts b/packages/abc/sg/sg.component.ts index abdf6e561..d4dd6ad59 100644 --- a/packages/abc/sg/sg.component.ts +++ b/packages/abc/sg/sg.component.ts @@ -21,7 +21,7 @@ const prefixCls = `sg`; @Component({ selector: 'sg', exportAs: 'sg', - template: ` `, + template: ` `, host: { '[style.padding-left.px]': 'paddingValue', '[style.padding-right.px]': 'paddingValue' diff --git a/packages/abc/sg/sg.spec.ts b/packages/abc/sg/sg.spec.ts index 40857002d..a1a022145 100644 --- a/packages/abc/sg/sg.spec.ts +++ b/packages/abc/sg/sg.spec.ts @@ -128,7 +128,7 @@ describe('abc: sg', () => { @Component({ template: `
    - +
    ` }) diff --git a/packages/abc/st/st-filter.component.ts b/packages/abc/st/st-filter.component.ts index de0d648b5..98056d69e 100644 --- a/packages/abc/st/st-filter.component.ts +++ b/packages/abc/st/st-filter.component.ts @@ -52,7 +52,7 @@ import { _STColumn } from './st.types'; [nzPrecision]="f.number!.precision" [nzPlaceHolder]="f.placeholder!" class="width-100" - > + />
    + /> + />
    + />
      diff --git a/packages/abc/st/st-td.component.html b/packages/abc/st/st-td.component.html index 5ba9dcbfb..fd2d98af1 100644 --- a/packages/abc/st/st-td.component.html +++ b/packages/abc/st/st-td.component.html @@ -21,10 +21,10 @@ [ngClass]="i._className" (click)="_stopPropagation($event)" > - + - + @@ -72,10 +72,10 @@ - + - + +
    • - - +
    - - + - + diff --git a/packages/abc/st/st.component.html b/packages/abc/st/st.component.html index 20993b762..0d4584e02 100644 --- a/packages/abc/st/st.component.html +++ b/packages/abc/st/st.component.html @@ -90,17 +90,15 @@ #renderTitle [ngTemplateOutlet]="_c.__renderTitle!" [ngTemplateOutletContext]="{ $implicit: h.column, index: index }" - > + /> - - +
    - - +
    - + @@ -139,7 +134,7 @@ [locale]="locale" (n)="handleFilterNotify($event)" (handle)="_handleFilter(_c, $event)" - > + /> @@ -147,10 +142,7 @@ - + - + - + - + - - + - - + - + {{ renderTotal(total, range) }} diff --git a/packages/abc/st/test/base.spec.ts b/packages/abc/st/test/base.spec.ts index d53de457b..b43d9770d 100644 --- a/packages/abc/st/test/base.spec.ts +++ b/packages/abc/st/test/base.spec.ts @@ -420,8 +420,7 @@ export class PageObject { [customRequest]="customRequest" (change)="change($event)" (error)="error()" - > - + /> In tpl close diff --git a/packages/abc/sv/sv-container.component.ts b/packages/abc/sv/sv-container.component.ts index 90f508973..ca1f63bf7 100644 --- a/packages/abc/sv/sv-container.component.ts +++ b/packages/abc/sv/sv-container.component.ts @@ -22,7 +22,7 @@ import { BooleanInput, InputBoolean, InputNumber, NumberInput } from '@delon/uti {{ title }} - +
    `, host: { @@ -71,7 +71,7 @@ export class SVContainerComponent { @Component({ selector: 'sv-title, [sv-title]', exportAs: 'svTitle', - template: '', + template: '', host: { '[class.sv__title]': 'true' }, diff --git a/packages/abc/sv/sv-value.component.ts b/packages/abc/sv/sv-value.component.ts index e9ca9584b..22c7f17e5 100644 --- a/packages/abc/sv/sv-value.component.ts +++ b/packages/abc/sv/sv-value.component.ts @@ -7,7 +7,7 @@ import type { NzTSType } from 'ng-zorro-antd/core/types'; exportAs: 'svValue', template: ` - + `, host: { diff --git a/packages/abc/sv/sv.component.html b/packages/abc/sv/sv.component.html index 5e4d6924c..a0b863fde 100644 --- a/packages/abc/sv/sv.component.html +++ b/packages/abc/sv/sv.component.html @@ -23,7 +23,7 @@
    - +
    @@ -136,4 +130,4 @@

    {{ 'app.home.theme.' + t | i18n }}

    - + diff --git a/src/app/shared/components/code-box/code-box.component.html b/src/app/shared/components/code-box/code-box.component.html index df88c14a3..9860d5fd5 100644 --- a/src/app/shared/components/code-box/code-box.component.html +++ b/src/app/shared/components/code-box/code-box.component.html @@ -1,7 +1,7 @@
    - +
    @@ -9,7 +9,7 @@
    {{ item.title }} - +
    diff --git a/src/app/shared/components/content/content.component.html b/src/app/shared/components/content/content.component.html index bc92ba571..ed0712ddb 100644 --- a/src/app/shared/components/content/content.component.html +++ b/src/app/shared/components/content/content.component.html @@ -6,7 +6,7 @@
    @@ -28,7 +28,7 @@
    - +
    diff --git a/src/app/shared/components/docs/docs.component.html b/src/app/shared/components/docs/docs.component.html index aa1a1cd15..df9eb6cd9 100644 --- a/src/app/shared/components/docs/docs.component.html +++ b/src/app/shared/components/docs/docs.component.html @@ -2,7 +2,7 @@ - + @@ -38,13 +38,13 @@

    IMPORT MODULE

    - +

    - +
    diff --git a/src/app/shared/components/footer/footer.component.html b/src/app/shared/components/footer/footer.component.html index a8420e45b..5aa8e74ca 100644 --- a/src/app/shared/components/footer/footer.component.html +++ b/src/app/shared/components/footer/footer.component.html @@ -76,7 +76,7 @@

    {{ 'app.footer.community' | i18n }}

    - + diff --git a/src/dev/home/home.component.ts b/src/dev/home/home.component.ts index b6440b31c..e074c5d6c 100644 --- a/src/dev/home/home.component.ts +++ b/src/dev/home/home.component.ts @@ -5,7 +5,7 @@ import { LayoutDefaultService } from '@delon/theme/layout-default'; @Component({ selector: 'dev-home', template: ` - + home
    options: {{ srv.options | json }}
    diff --git a/src/dev/layout.component.ts b/src/dev/layout.component.ts index 6afe312ee..9b9d1a522 100644 --- a/src/dev/layout.component.ts +++ b/src/dev/layout.component.ts @@ -79,7 +79,7 @@ const ICONS = [
    - +