You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.
lockbot
locked as resolved and limited conversation to collaborators
May 4, 2018
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
发生问题的环境是:
您做了什么?
引入了所有ant的less文件
您期待的结果是:
当使用DatePicker的时间选择功能时,样式显示正常
实际上的结果是:
时间选择功能没有样式,完全没有。
问题产生的可能原因:
我看了一下代码,
@timepicker-prefix-cls
这个变量在两个地方有声明:date-picker/style/index.less
以及time-picker/style/index.less
,我现在输出的css里面,两个地方都输出了.ant-time-picker
。当我把time-picker/style/index.less
里面的变量名换个名字并且把使用的地方也相应改了以后(@timepicker-prefix-cls
=>@timepicker-prefix-class
),就是让这两个地方的变量名不同,我发现date picker的时间选择功能的样式就有了,显示也正常了。不太清楚为什么这两个地方的变量会冲突,我用的应该是最新的 less 和 less-loader了。
The text was updated successfully, but these errors were encountered: