0.0.17 • Published 2 years ago
@farris/ui-list-nav v0.0.17
ListNav
This library was generated with 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 yourangular.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.
Further help
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.
扩展模块
<ng-template listNavTitle>
标题部分<ng-template listNavContent>
内容区域<ng-template listNavFooter>
底部区域
属性
- listNavWidth listnav宽度 默认218px
- disabled 是否禁止收折 默认false
- position 'left' | 'right' 位置
事件
- navStateChange listnav 折叠收起状态发生变化 {showNav:false/true}