Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/33.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angular 角度:strictTemplates和虚拟滚动视口_Angular_Angular Material - Fatal编程技术网

Angular 角度:strictTemplates和虚拟滚动视口

Angular 角度:strictTemplates和虚拟滚动视口,angular,angular-material,Angular,Angular Material,我在VirtualScroll视口中跟随材质表。代码运行得很好。在我的一个HTML文件中,我有如下内容 <cdk-virtual-scroll-viewport tvsItemSize [ngStyle]=... 错误消息似乎没有意义。tvsItemSize是TableItemSizeDirective。当我点击打开它时,我会进入行高。有人知道怎么修吗 .... error TS2322: Type 'string' is not assignable to type 'number

我在VirtualScroll视口中跟随材质表。代码运行得很好。在我的一个HTML文件中,我有如下内容

<cdk-virtual-scroll-viewport tvsItemSize [ngStyle]=...
错误消息似乎没有意义。
tvsItemSize
TableItemSizeDirective
。当我点击打开它时,我会进入
行高
。有人知道怎么修吗

....   error TS2322: Type 'string' is not assignable to type 'number'.
4   <cdk-virtual-scroll-viewport tvsItemSize [ngStyle]="{'height': 'calc(
                                 ~~~~~~~~~~~