Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wszgrcy/cyia-ngx-common
https://github.com/wszgrcy/cyia-ngx-common
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/wszgrcy/cyia-ngx-common
- Owner: wszgrcy
- Created: 2018-09-12T14:18:34.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-05-11T08:13:17.000Z (9 months ago)
- Last Synced: 2024-10-31T19:48:33.237Z (3 months ago)
- Language: TypeScript
- Size: 4.39 MB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 29
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 使用方法
## 事件修饰符
- 支持组件与 dom 元素
```ts
import { ModifierEventsPlugin } from '@cyia/ngx-common/event';
@NgModule({
//...
providers: [
{
provide: EVENT_MANAGER_PLUGINS,
useClass: EventModifiersPlugin,
multi: true,
deps: [DOCUMENT],
},
],
//...
})
```## 自定义修饰符
```ts
{
provide: EVENT_MODIFIER_OPTIONS,
useValue: {
modifiers: {
map: {
prefix: (value) => {
return `prefix:${value}`;
},
},
},
componentOutput: true,
},
},
```# 更新日志
## 10.1.0
- 增加`monaco-textmate`模块,用于在 monaco 中使用 vscode 相关主题及 token 分割方法
## 10.0.1
- 暴露载入提示组件相关常量
## 10.0.0
- 升级至 ng10 版本
- 增加动态懒加载组件指令及对动态懒加载组件的自定义表单控件支持## 9.0.0
- 升级至 ng9 版本
> `ComponentFactory.create`不能自定义选择器,否则无法销毁,原因未知(Angular Material Design 中的 cdk 也是外面包了一层)
- 为了更明显的更新依赖包,主版本号和 Angular 的版本号一致## 2.2.1
- 增加了自动化生成使用文档和代码注释(简易,正在制作)
## 2.2.0
- 废弃`CyiaHttpModule`使用,改为`CyiaRepositoryModule`
> 解耦,提高灵活性## 2.1.7
- 重写了载入提示组件
## 2.03
- 请求参数类型增加
## 2.02
- 结构化实体中的 bug 修复
## 1.2.0
- 升级为 ng7 编译
## 1.1.9
- 对请求地址整合的'/'处理
## 1.1.8
- 更新编译方式
## 1.1.6
- 更新 http 合并参数的一个错误
## 1.1.3
- 修正依赖 需要 rxjs
## 1.1.1
- 增加 window 类型判断
## 1.1.0
- 增加 http 请求封装
- 增加深度对象复制封装