# ListNav

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 list-nav` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project list-nav`.
> Note: Don't forget to add `--project list-nav` or else it will be added to the default project in your `angular.json` file. 

## Build

Run `ng build list-nav` to build the project. The build artifacts will be stored in the `dist/` directory.

## Publishing

After building your library with `ng build list-nav`, go to the dist folder `cd dist/list-nav` and run `npm publish`.

## Running unit tests

Run `ng test list-nav` 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. `<ng-template listNavTitle>` 标题部分
2. `<ng-template listNavContent>` 内容区域
3. `<ng-template listNavFooter>` 底部区域

## 属性
1. listNavWidth listnav宽度 默认218px
2. disabled 是否禁止收折 默认false
3. position 'left' | 'right' 位置
<!-- 3. hover 折叠收起是否支持鼠标滑过 -->

## 事件
1. navStateChange listnav 折叠收起状态发生变化  {showNav:false/true}
