cost 79 ms
我安装了“@angular/cdk”并在导入 DragDropModule 时出错,我做错了什么? - I install '@angular/cdk' and got an error when I import DragDropModule, what do I do wrong?

你想做什么? 我想使用@angular/cdk (源代码)来制作一个可拖动的模式,如他们的教程中所见 再生产 npm i @angular/cdk 然后当我在我的文件 xxx.module.ts 中导入模块时: import { DragDropModule } from '@angular/ ...

有没有办法使组件(而不是元素)在 angular 中可拖动? - Is there a way to make components (not elements) draggable in angular?

我使用 Angular CDK 拖放模块,它在 div、p 等 html 元素上运行良好。 但是由于某种原因,当我在组件上放置 cdkDrag 指令时,它不起作用。 我注意到的另一件事是,angular 中的每个组件的宽度和高度都设置为auto (基本上是 0x0),除非我编辑 css 并将di ...

错误TypeError:无法读取Angular 7 Drag and Drop中未定义的属性“length” - ERROR TypeError: Cannot read property 'length' of undefined in Angular 7 Drag and Drop

我只是想在@angular/cdk/drag-drop的Angular 7 DragDropModule的帮助下创建拖放组件。 但我总是得到如下错误。 这是我的HomeComponent.html 和HomeComponent.ts 我知道我错过了什么。 但不确定,它 ...


排序:
质量:
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM