Skip to content

Commit

Permalink
feat(abc:tag-select): support standalone
Browse files Browse the repository at this point in the history
  • Loading branch information
cipchk committed Jan 11, 2024
1 parent f47192f commit 5b757a9
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/abc/pdf/demo/design.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { ChangeDetectorRef, Component, OnInit, ViewChild } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { Subject } from 'rxjs';

import { PdfChangeEvent, PdfComponent, PdfComponent, PdfZoomScale } from '@delon/abc/pdf';
import { PdfChangeEvent, PdfComponent, PdfZoomScale } from '@delon/abc/pdf';
import { SEModule } from '@delon/abc/se';
import { NzButtonModule } from 'ng-zorro-antd/button';
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
Expand Down
4 changes: 2 additions & 2 deletions packages/abc/tag-select/demo/simple.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ title: 基础样例
```ts
import { Component } from '@angular/core';

import { TagSelectModule } from '@delon/abc/tag-select';
import { TagSelectComponent } from '@delon/abc/tag-select';
import { NzTagModule } from 'ng-zorro-antd/tag';

interface TagSelectDemoItem {
Expand All @@ -29,7 +29,7 @@ interface TagSelectDemoItem {
</tag-select>
`,
standalone: true,
imports: [TagSelectModule, NzTagModule]
imports: [TagSelectComponent, NzTagModule]
})
export class DemoComponent {
categories: TagSelectDemoItem[] = [
Expand Down
2 changes: 1 addition & 1 deletion packages/abc/tag-select/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Increase the label expansion and retraction function.

## API

### tag-select
### tag-select:standalone

| Property | Description | Type | Default |
|----------|-------------|------|---------|
Expand Down
2 changes: 1 addition & 1 deletion packages/abc/tag-select/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module: import { TagSelectModule } from '@delon/abc/tag-select';

## API

### tag-select
### tag-select:standalone

| 成员 | 说明 | 类型 | 默认值 |
|----|----|----|-----|
Expand Down
5 changes: 4 additions & 1 deletion packages/abc/tag-select/tag-select.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';

import { DelonLocaleService, LocaleData } from '@delon/theme';
import { BooleanInput, InputBoolean } from '@delon/util/decorator';
import { NzIconDirective } from 'ng-zorro-antd/icon';

@Component({
selector: 'tag-select',
Expand All @@ -30,7 +31,9 @@ import { BooleanInput, InputBoolean } from '@delon/util/decorator';
},
preserveWhitespaces: false,
changeDetection: ChangeDetectionStrategy.OnPush,
encapsulation: ViewEncapsulation.None
encapsulation: ViewEncapsulation.None,
standalone: true,
imports: [NzIconDirective]
})
export class TagSelectComponent implements OnInit {
static ngAcceptInputType_expandable: BooleanInput;
Expand Down
3 changes: 1 addition & 2 deletions packages/abc/tag-select/tag-select.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ import { TagSelectComponent } from './tag-select.component';
const COMPONENTS = [TagSelectComponent];

@NgModule({
imports: [CommonModule, NzIconModule, DelonLocaleModule],
declarations: COMPONENTS,
imports: [CommonModule, NzIconModule, DelonLocaleModule, ...COMPONENTS],
exports: COMPONENTS
})
export class TagSelectModule {}

0 comments on commit 5b757a9

Please sign in to comment.