import React, { useState } from 'react'; import { EllipsisOutlined } from '@ant-design/icons'; import type { ConfigProviderProps, RadioChangeEvent, TableProps, TourProps, UploadFile, } from 'antd'; import { Button, Calendar, ConfigProvider, DatePicker, Divider, Form, Image, Input, InputNumber, Modal, Pagination, Popconfirm, QRCode, Radio, Select, Space, Table, theme, TimePicker, Tour, Transfer, Upload, } from 'antd'; import enUS from 'antd/locale/en_US'; import zhCN from 'antd/locale/zh_CN'; import dayjs from 'dayjs'; import 'dayjs/locale/zh-cn'; type Locale = ConfigProviderProps['locale']; dayjs.locale('en'); const { Option } = Select; const { RangePicker } = DatePicker; const columns: TableProps['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