0.1.1 • Published 25 days ago

@farris/ui-view-change v0.1.1

Weekly downloads
10
License
-
Repository
-
Last release
25 days ago

ViewChange

This library was generated with Angular CLI version 7.2.0.

Code scaffolding

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

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

Build

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

Publishing

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

Running unit tests

Run ng test view-change 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. toolbarData 视图类型列表数组 其中对象中type类型需要唯一
  2. defaultType 默认显示的视图类型,对应上述的type,如果没有传,默认展示第一种类型
  3. viewType 默认是视图按钮平铺tile 可选参数'dropdown' 下拉选择视图

事件

  1. toolTypeChange 当视图类型变化时触发,接受参数为当前选中视图的列表项
0.1.1

25 days ago

0.1.0

2 months ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago