|
@@ -22,6 +22,8 @@ export interface BoxPopupRef {
|
|
|
|
|
|
|
|
export const BoxPopup = forwardRef<BoxPopupRef, BoxPopupProps>(({ onSelect }, ref) => {
|
|
export const BoxPopup = forwardRef<BoxPopupRef, BoxPopupProps>(({ onSelect }, ref) => {
|
|
|
const [activeBucket, setActiveBucket] = useState(0);
|
|
const [activeBucket, setActiveBucket] = useState(0);
|
|
|
|
|
+ const [list, setList] = useState<BoxItem[]>([]);
|
|
|
|
|
+ const [visible, setVisible] = useState(false);
|
|
|
|
|
|
|
|
useImperativeHandle(ref, () => ({
|
|
useImperativeHandle(ref, () => ({
|
|
|
open: (data: BoxItem[]) => {
|
|
open: (data: BoxItem[]) => {
|