File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed
src/PickerInput/Selector/SingleSelector Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 108108 "prepare" : " npx husky"
109109 },
110110 "dependencies" : {
111+ "@rc-component/overflow" : " ^1.0.0" ,
111112 "@rc-component/resize-observer" : " ^1.0.0" ,
112113 "@rc-component/trigger" : " ^3.6.15" ,
113114 "@rc-component/util" : " ^1.3.0" ,
114- "clsx" : " ^2.1.1" ,
115- "rc-overflow" : " ^1.3.2"
115+ "clsx" : " ^2.1.1"
116116 },
117117 "devDependencies" : {
118118 "@rc-component/father-plugin" : " ^1.0.0" ,
Original file line number Diff line number Diff line change 11import { clsx } from 'clsx' ;
2- import Overflow from 'rc-overflow' ;
2+ import Overflow from '@ rc-component/ overflow' ;
33import * as React from 'react' ;
4+ import type { MouseEventHandler } from 'react' ;
45import type { PickerProps } from '../../SinglePicker' ;
56
6- export interface MultipleDatesProps < DateType extends object = any >
7- extends Pick < PickerProps , 'maxTagCount' > {
7+ export interface MultipleDatesProps < DateType extends object = any > extends Pick <
8+ PickerProps ,
9+ 'maxTagCount'
10+ > {
811 prefixCls : string ;
912 value : DateType [ ] ;
1013 onRemove : ( value : DateType ) => void ;
@@ -33,7 +36,7 @@ export default function MultipleDates<DateType extends object = any>(
3336 const overflowCls = `${ selectionCls } -overflow` ;
3437
3538 // ========================= Item =========================
36- function renderSelector ( content : React . ReactNode , onClose ?: React . MouseEventHandler ) {
39+ function renderSelector ( content : React . ReactNode , onClose ?: MouseEventHandler < HTMLSpanElement > ) {
3740 return (
3841 < span
3942 className = { clsx ( `${ selectionCls } -item` ) }
You can’t perform that action at this time.
0 commit comments