0.0.19 • Published 8 months ago

@farris/ui-avatar v0.0.19

Weekly downloads
20
License
-
Repository
-
Last release
8 months ago

Avatar

This library was generated with Angular CLI version 7.2.0.

Code scaffolding

Run ng generate component component-name --project avatar to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project avatar.

Note: Don't forget to add --project avatar or else it will be added to the default project in your angular.json file.

Build

Run ng build avatar to build the project. The build artifacts will be stored in the dist/ directory.

Publishing

After building your library with ng build avatar, go to the dist folder cd dist/avatar and run npm publish.

Running unit tests

Run ng test avatar to execute the unit tests via Karma.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

属性

  1. cover 头像img标签默认路径
  2. size 图片最大size 单位M
  3. type 图片限制的类型 接收数组类型
  4. readonly 是否只读 默认false
  5. imgTitle 鼠标放上去后img位置的title值
  6. avatarWidth 宽度 number 默认100
  7. avatarHeight 高度 number 默认100
  8. imgShape 头像形状 默认为圆形'circle' 可选参数 正方形'square' 如果需要设置椭圆形,需要修改avatarWidth、avatarHeight,调整圆形显示即可

事件

  1. imgChange 图片变化后监听事件
0.0.19

8 months ago

0.0.18

3 years ago

0.0.17

3 years ago

0.0.16

4 years ago

0.0.15

4 years ago

0.0.14

4 years ago

0.0.13

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago