ng-devui
ng-devui copied to clipboard
dForm layout报错
declare (property) FormDirective.layout: FormLayout Type '"horizontal"' is not assignable to type 'FormLayout'.
declare (property) FormDirective.layout: FormLayout Type '"horizontal"' is not assignable to type 'FormLayout'.
dForm [layout]="'horizontal'" [labelSize]="'sm'"
11.3.0版本表现正常 方便告知下您使用的组件库版本号么
declare (property) FormDirective.layout: FormLayout Type '"horizontal"' is not assignable to type 'FormLayout'.
如果你用的是ng12,可能是因为tsconfig.json里面开了strictTemplate,你在对应的ts文件里定义一下layout: FormLayout = FormLayout.Horizontal,把html里面的layout参数换一下