我在react-final-form中使用react-datepicker。我正在使用具有多个步骤的模板https://codesandbox.io/s/km2n35kq3v?file=/index.js。问题是我无法将日期选择器集成到组件内。我的代码如下所示:
return (
<Field name={props.name} parse={() => true}>
{props => (
<DatePicker
locale="de"
placeholderText="Datum eingeben"
selected={startDate}
dateFormat="P"
openToDate={new Date()}
minDate={new Date()}
disabledKeyboardNavigation
name={props.name}
value={startDate}
onChange={(date) => setStartDate(date)}
/>
)}
</Field>
);
Run Code Online (Sandbox Code Playgroud)
有谁知道我如何使用它以便数据在表单末尾传递?
此致
我尝试在 swift 3 中每秒刷新一次标签。我总是收到以下错误:
Showing Recent Issues
Command failed due to signal: Segmentation fault: 11
Run Code Online (Sandbox Code Playgroud)
这是我使用过的代码:
var TimerBeacon = Timer.scheduledTimer(timeInterval: 1, target: self,
selector: Selector(("Timer")), userInfo: nil, repeats: true)
func Timer() {
//here is the label to refresh
}
Run Code Online (Sandbox Code Playgroud)
我希望有人能帮助我:)