UNPKG

@aliretail/react-materials-components

Version:
29 lines (25 loc) 709 B
--- title: WeekDatePicker order: 81 --- ```jsx import React from 'react'; import ReactDOM from 'react-dom'; import { FormComponents } from '@aliretail/react-materials-components'; const { WeekDatePicker, SchemaForm, SchemaMarkupField: Field, createFormActions } = FormComponents; const App = () => { return ( <SchemaForm components={{ WeekDatePicker }} onChange={console.log} defaultValue={{ readOnly: '2019-20th', }} > <Field x-component="WeekDatePicker" title="WeekDatePicker" name="WeekDatePicker" /> <Field x-component="WeekDatePicker" title="readOnly" name="readOnly" readOnly /> </SchemaForm> ); }; ReactDOM.render(<App />, mountNode); ```