角色材料2组件中的“cdk”是什么?(What is `cdk` in Angular Material 2 components)

编程入门 行业动态 更新时间:2024-10-25 02:23:50
角色材料2组件中的“cdk”是什么?(What is `cdk` in Angular Material 2 components)

在角材料源的多个位置,有一些元素/ css类,它们以cdk为前缀。

有谁知道cdk在角质素上下文中的缩写?

In multiple places within angular material source, there are elements/ css classes that have cdk as their prefix.

Does anyone know what the abbreviation for cdk in angular material context?

最满意答案

CDK是component dev kit的简短形式。 这意味着这些是用于构建未耦合到材料设计的组件的通用工具

从material2更新日志

core/几个组件(如Overlay)将其前缀更改为cdk- (“component dev kit”的简称)。 这意味着这些是用于构建未耦合到材料设计的组件的通用工具。旧选择器仍然可以不推荐使用,但将在下一个版本中删除。 CSS类已更改。

有关如何使用cdk组件(如表,覆盖,门户网站,门户网站主机等)的更多信息,您可以在这里找到示例:

https://github.com/angular/material2/tree/master/src/demo-app https://medium.com/@caroso1222/a-first-look-into-the-angular-cdk-67e68807ed9b

CDK is the short form of component dev kit. This signifies that these are general-purpose tools for building components that are not coupled to Material Design

From the material2 changelog

Several components in core/, such as Overlay, have had their prefix changed to cdk- (short for "component dev kit"). This signifies that these are general-purpose tools for building components that are not coupled to Material Design.The old selectors are still available as deprecated but will be removed in the next release. The CSS classes have been changed.

For more info on how to use cdk components such as table, overlay, portal, portal host, e.t.c, you can find examples here:

https://github.com/angular/material2/tree/master/src/demo-app https://medium.com/@caroso1222/a-first-look-into-the-angular-cdk-67e68807ed9b

更多推荐

本文发布于:2023-08-06 15:18:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1451302.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:组件   角色   材料   cdk   Material

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!