diff --git a/docs/examples/debug.tsx b/docs/examples/debug.tsx index 98822512b..1dd1f04fc 100644 --- a/docs/examples/debug.tsx +++ b/docs/examples/debug.tsx @@ -37,7 +37,38 @@ const sharedLocale = { const MyInput = React.forwardRef>( (props, ref) => { console.log('>>>', props); - return ; + const { 'data-range': range, value, style } = props as any; + + // return ( + //
+ // + //
+ // ); + + return ( +
+ + {!value && ( +
+ {range === 'start' ? '从未' : '至今'} +
+ )} +
+ ); }, ); MyInput.displayName = 'MyInput'; @@ -61,11 +92,11 @@ export default () => { <>2333{ori}} placeholder={['Start', 'End']} suffixIcon="🧶" onFocus={(_, info) => {