-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Closed
Labels
Description
- I have searched the issues of this repository and believe that this is not a duplicate.
Version
1.0.1
Environment
chrome , vue 2.9.X
Reproduction link
https://jsfiddle.net/mmx38qxw/4412/
Steps to reproduce
抱歉在线链接只能把整个组件搬上来了 在使用日期选择器的时候 设置默认值出现了浏览器报错
首先是 Property or method "moment" is not defined 但是我在created的时候打印了 moment() 是正确引入了的(PS: 已经确认并不是moment加载前组件渲染不正确的问题)
其次 我把传入值改成 :defaultValue="[start_day, end_day]" 想撇开moment自己控制时间的之后 又会返回 传入的props不正确的报错
What is expected?
a-range-picker 组件的defaultValue能正确使用
What is actually happening?
报错了
希望可以自己传入 [开始时间, 结束时间] 这样