我使用此代码显示datepicker
,但是我的问题是如何将其默认设置为空。我尝试将初始值更改为null,但是将datepicker
设为禁用。
{
getFieldDecorator("dob", {
rules: [genRequiredError("Date of Birth")],
initialValue: userData.dob
})(
<DatePicker
disabledDate={disabledKids}
format="MM-DD-YYYY"
placeholder="Select Date of Birth"
/>
);
}
谢谢
答案 0 :(得分:0)
您可以传递
The NPM script 'start' exited without indicating that the Angular CLI was listening for requests. The error output was: Error: EPERM: operation not permitted, mkdir 'C:\WINDOWS\system32\config\systemprofile\AppData\Roaming\npm
之类的本地状态,并在构造函数中将本地状态为空