import { EllipsisOutlined } from '@ant-design/icons'; import type { RadioChangeEvent, TourProps, UploadFile } from 'antd'; import { Upload, Tour, Input, Form, QRCode, Button, Calendar, ConfigProvider, DatePicker, Modal, Pagination, Popconfirm, Radio, Select, Space, Table, theme, TimePicker, Transfer, Image, InputNumber, Divider, } from 'antd'; import type { Locale } from 'antd/es/locale'; import enUS from 'antd/locale/en_US'; import zhCN from 'antd/locale/zh_CN'; import dayjs from 'dayjs'; import 'dayjs/locale/zh-cn'; import React, { useState } from 'react'; dayjs.locale('en'); const { Option } = Select; const { RangePicker } = DatePicker; const columns = [ { title: 'Name', dataIndex: 'name', filters: [{ text: 'filter1', value: 'filter1' }], }, { title: 'Age', dataIndex: 'age', }, ]; const Page: React.FC = () => { const { token } = theme.useToken(); const [open, setOpen] = useState(false); const [tourOpen, setTourOpen] = useState(false); const tourRefs = React.useRef([]); const showModal = () => { setOpen(true); }; const hideModal = () => { setOpen(false); }; const info = () => { Modal.info({ title: 'some info', content: 'some info', }); }; const confirm = () => { Modal.confirm({ title: 'some info', content: 'some info', }); }; const steps: TourProps['steps'] = [ { title: 'Upload File', description: 'Put your files here.', target: () => tourRefs.current[0], }, { title: 'Save', description: 'Save your changes.', target: () => tourRefs.current[1], }, { title: 'Other Actions', description: 'Click to see other actions.', target: () => tourRefs.current[2], }, ]; const fileList: UploadFile[] = [ { uid: '-1', name: 'image.png', status: 'done', url: 'https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png', }, { uid: '-2', percent: 50, name: 'image.png', status: 'uploading', url: 'https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png', }, { uid: '-3', name: 'image.png', status: 'error', }, ]; return ( Click to confirm

Locale Modal

console.log('refresh')} /> Tour