# ViewChange

This library was generated with [Angular CLI](https://github.com/angular/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](https://karma-runner.github.io).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).

## 属性
1. toolbarData 视图类型列表数组 其中对象中type类型需要唯一
2. defaultType 默认显示的视图类型，对应上述的type，如果没有传，默认展示第一种类型
3. viewType 默认是视图按钮平铺tile 可选参数'dropdown' 下拉选择视图

## 事件
1. toolTypeChange 当视图类型变化时触发，接受参数为当前选中视图的列表项

