Skip to content

Commit

Permalink
docs: 完善doc
Browse files Browse the repository at this point in the history
  • Loading branch information
EnochGao committed Sep 6, 2023
1 parent 71fcf37 commit 506dd51
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 2 deletions.
4 changes: 4 additions & 0 deletions components/configurable-query/controls/abstract.control.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ import { Directive, Input } from '@angular/core';
import { NzxQueryControlOptions } from '../type';
import { FormGroup } from '@angular/forms';

/**
* 用来动态添加control type类型控件,类型控件需要继承此控件
*/

@Directive()
export abstract class NzxAbstractControl {
@Input() form!: FormGroup<any>;
Expand Down
3 changes: 3 additions & 0 deletions components/configurable-query/query-config.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ import { NzxRangePickerControlComponent } from './controls/range-picker.control'
import { NzxSelectControlComponent } from './controls/select.control';
import { NzxTemplateControlComponent } from './controls/template.control';

/**
* 用来动态添加control type类型控件
*/
@Injectable({ providedIn: 'root' })
export class NzxQueryConfigService {
private controlTypePoll: NzxQueryControlType[] = [
Expand Down
2 changes: 1 addition & 1 deletion components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ng-zorro-antd-extension",
"version": "15.11.1",
"version": "15.12.0",
"license": "MIT",
"description": "An extension based on ng-zorro-antd",
"keywords": [
Expand Down
11 changes: 11 additions & 0 deletions docs/changelog/v15.12.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
category: component
title: v15.12.0
order: 17
---

### 新功能

`nzx-configurable-query`

- 新增动态添加 ControlType 控件功能
11 changes: 11 additions & 0 deletions docs/en-us/changelog/v15.12.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
category: component
title: v15.12.0
order: 17
---

### New Feature

`nzx-configurable-query`

- Added the function of dynamically adding ControlType controls
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ng-zorro-antd-extension",
"version": "15.11.1",
"version": "15.12.0",
"license": "MIT",
"description": "An extension based on ng-zorro-antd",
"keywords": [
Expand Down

0 comments on commit 506dd51

Please sign in to comment.