组件库
组件名 | 说明 | 地址 |
---|---|---|
iwe7-flex | flex布局组件 | https://github.com/iwe7/iwe7-flex |
iwe7-map | 百度地图组件 | https://github.com/iwe7/iwe7-map |
iwe7-im | IM组件 | https://github.com/iwe7/iwe7-im |
iwe7-icss | rxjs操作css | https://github.com/iwe7/iwe7-icss |
iwe7-core | 核心库 | https://github.com/iwe7/iwe7-core |
iwe7-script | 加载css和js | https://github.com/iwe7/iwe7-script |
iwe7-util | 工具 | https://github.com/iwe7/iwe7-util |
iwe7-square | 正方形组件 | https://github.com/iwe7/iwe7-square |
iwe7-better-scroll | 滑动组件 | https://github.com/iwe7/iwe7-better-scroll |
iwe7-web-storage | 缓存相关 | https://github.com/iwe7/iwe7-web-storage |
iwe7-url | api链接便签 | https://github.com/iwe7/iwe7-url |
iwe7-video | 视频播放 | https://github.com/iwe7/iwe7-video |
- 案例
import { Iwe7CoreControlValueAccessor } from 'iwe7-core';
@Component({
...,
providers: {
provide: NG_VALUE_ACCESSOR,
useExisting: forwardRef(() => TestComponent),
multi: true
}
})
export class TestComponent extends Iwe7CoreControlValueAccessor {
value: any;
constructor(injector: Injector){
super(injector);
this.getCyc('ngWriteValue').pipe(
tap(res=> {
// 初始化赋值
this.value = res;
})
).subscribe();
}
}