NG-ZORRO / ng-zorro-antd

Angular UI Component Library based on Ant Design
https://ng.ant.design
MIT License
8.87k stars 3.94k forks source link

13.0 之后的Space组件中*nzSpaceItem在webstorm中无法识别为结构型指令 #7197

Open etfired1 opened 2 years ago

etfired1 commented 2 years ago

What problem does this feature solve?

Angular结构化指令要求指令构造函数包括ViewContainerRef和一个TemplateRef,WebStorm编辑器会严格检查这个配置。

Angular structured instruction requires the instruction constructor to include ViewContainerRef and a TemplateRef. WebStorm editor will strictly check this configuration.

What does the proposed API look like?

建议在指令 space-item.directive.ts 构造函数上加上这两个参数,保持符合Angular约定的结构化指令构造函数格式。 目前该部分代码为空指令,构造函数无参数

It is suggested that these two parameters should be added to the instruction space-item.directive.ts constructor to keep the structured instruction constructor format conforming to the Angular convention. At present, this part of code is an empty instruction, and the constructor has no parameters.

zorro-bot[bot] commented 2 years ago

Translation of this issue:

13.0 Space components in the SPACE component * NzspaceItem cannot identify the structural instructions in WebStorm

What proBLEES THIS Feature SOLVE?

Angular Structured Directive Requirements The instruction constructor includes ViewContainerRef and a TemplateRef, and the WebStorm editor will strictly check this configuration.

Angular Structured Instruction Requires The Instruction Constructor To include ViewContainerRef and a Templateref. WebStorm Editor Will Strictly Check this configuration.

What does The proposed API Look Like?

It is recommended to add these two parameters on the instruction Space-Item.directive.ts constructor to maintain a structured instruction constructor format that conforms to Angular Convention. This part of this part code is empty instruction, and the constructor has no parameters.

It is suggested that these two parameters should be added to the instruction space-item.directive.ts constructor to keep the structured instruction constructor format conforming to the Angular convention. At present, this Part of code is an Empty Instruction, And The Constructor Has No parameter.

alva-lin commented 2 years ago

image 现在还有这个问题