摘要: 1. cdk 文档 https://material.angular.io/cdk/categories 2. bidi 模块,设置布局方向。 (1)一个服务 Directionality export declare class Directionality implements OnDestro 阅读全文
posted @ 2021-02-19 16:26 耶梦加德 阅读(57) 评论(0) 推荐(0) 编辑
摘要: 1. cdk 文档 https://material.angular.io/cdk/categories 2. a11y 模块 (1)a11y 提高页面可访问性 使用 alt 属性进行图像处理 添加 ARIA属性 来描述内容 允许文本大小定制 提供高对比度模式 用 TAB 或者↑↓←→ 键处理键盘导 阅读全文
posted @ 2021-02-19 15:52 耶梦加德 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 1. cdk 文档 https://material.angular.io/cdk/categories 2. platform 模块提供获取平台信息,以及平台支持的功能 (1)在使用之前的先import PlatformModule模块到我们工程里面来(这也是使用cdk里面Platform里面功能 阅读全文
posted @ 2021-02-19 15:05 耶梦加德 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 1. cdk 文档 https://material.angular.io/cdk/categories 2. keycodes 模块提供 import { hasModifierKey } from "@angular/cdk/keycodes"; (1)判断是否有 "修饰按键" 按下(type 阅读全文
posted @ 2021-02-19 12:03 耶梦加德 阅读(58) 评论(0) 推荐(0) 编辑
摘要: cdk库模块解释 @angular/cdk/coercion 常用类型转换工具 @angular/cdk/keycodes 常用键码 @angular/cdk/a11y accessibility 放置一些方便与使用者互动的功能 @angular/cdk/bidi 设置布局方向 @angular/c 阅读全文
posted @ 2021-02-19 11:51 耶梦加德 阅读(35) 评论(0) 推荐(0) 编辑
摘要: 1. cdk 文档 https://material.angular.io/cdk/categories 2. coercion 模块提供了一些类型转换的工具。 import { _isNumberValue, coerceArray, coerceBooleanProperty, coerceCs 阅读全文
posted @ 2021-02-19 11:48 耶梦加德 阅读(126) 评论(0) 推荐(0) 编辑