NG-ZORRO / ng-zorro-antd

Angular UI Component Library based on Ant Design
https://ng.ant.design
MIT License
8.87k stars 3.93k forks source link

time-picker css is empty #5196

Open Kuraikiko opened 4 years ago

Kuraikiko commented 4 years ago

Reproduction link

https://stackblitz.com/edit/ng-zorro-antd-start-qk71ke

Steps to reproduce

What is expected?

Time-picker should be displayed with the right style

What is actually happening?

Time-picker is displayed wrong

Environment Info
ng-zorro-antd 9.1.0
Browser Mozilla Firefox 75.0

wenqi73 commented 4 years ago

Currently, ng-zorro-antd only exports less file for the individual component, but you can't just import time-picker less because a component may rely on another component less. If you need time-picker to work, you should at least import:

@import "~ng-zorro-antd/style/entry.less";
@import "~ng-zorro-antd/date-picker/style/index.less";