File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -125,15 +125,7 @@ const MyInput = React.forwardRef<HTMLInputElement, React.InputHTMLAttributes<HTM
125125MyInput . displayName = 'MyInput' ;
126126
127127export default ( ) => {
128- const singleRef = React . useRef < PickerRef > ( null ) ;
129-
130128 const [ value , setValue ] = React . useState < Dayjs > ( dayjs ( '2024-01-15' ) ) ;
131- const [ rangeValue , setRangeValue ] = React . useState < [ Dayjs , Dayjs ] > (
132- [ dayjs ( '2024-01-15' ) , dayjs ( '2024-03-01' ) ] ,
133- // null,
134- // undefined,
135- ) ;
136-
137129 const setSingleValue = ( nextVal : Dayjs ) => {
138130 setValue ( nextVal ) ;
139131 } ;
@@ -149,7 +141,7 @@ export default () => {
149141 < RangePicker { ...sharedLocale } open picker = "time" style = { { width : 400 } } />
150142
151143 < div style = { { display : 'flex' , flexWrap : 'wrap' , gap : 16 } } >
152- { /* <PickerPanel
144+ < PickerPanel
153145 generateConfig = { dayjsGenerateConfig }
154146 locale = { zhCN }
155147 value = { value }
@@ -158,7 +150,7 @@ export default () => {
158150 console . error ( '1' ) ;
159151 console . log ( '🎲 PanelValue Change:' , panelValue , mode ) ;
160152 } }
161- /> */ }
153+ />
162154 </ div >
163155 </ div >
164156 ) ;
You can’t perform that action at this time.
0 commit comments