import React, { useRef } from 'react'; import type { BaseDatePicker } from '../../index'; import { DatePicker, Tabs, Space, Button } from '../../../index'; /** * test in cypress */ export default function Demo() { const ref = useRef(); const ref2 = useRef(); const TabPane = Tabs.TabPane; const handleClickOutside = () => { console.log('click outside'); }; const handleTabChange = (activeKey: string) => { if (activeKey === '1') { ref2.current?.close(); } if (activeKey === '2') { ref.current?.close(); } }; return ( ); } Demo.storyName = 'fix needConfirm in Tabs'; Demo.parameters = { chromatic: { disableSnapshot: false }, };