diff --git a/blocks/table/src/index.tsx b/blocks/table/src/index.tsx index 6eaf07a..6028b1c 100755 --- a/blocks/table/src/index.tsx +++ b/blocks/table/src/index.tsx @@ -15,45 +15,45 @@ const TableList: React.FC = () => { const actionRef = useRef(); const columns: ProColumns[] = [ { - title: '规则名称', + title: 'Rule name', dataIndex: 'name', }, { - title: '描述', + title: 'Description', dataIndex: 'desc', }, { - title: '服务调用次数', + title: 'Number of service calls', dataIndex: 'callNo', sorter: true, align: 'right', renderText: (val: string) => `${val} 万`, }, { - title: '状态', + title: 'Status', dataIndex: 'status', valueEnum: { - 0: { text: '关闭', status: 'Default' }, - 1: { text: '运行中', status: 'Processing' }, - 2: { text: '已上线', status: 'Success' }, - 3: { text: '异常', status: 'Error' }, + 0: { text: 'Shut down', status: 'Default' }, + 1: { text: 'Running', status: 'Processing' }, + 2: { text: 'Online', status: 'Success' }, + 3: { text: 'Abnormal', status: 'Error' }, }, }, { - title: '上次调度时间', + title: 'Last scheduled time', dataIndex: 'updatedAt', sorter: true, valueType: 'dateTime', }, { - title: '操作', + title: 'Operating', dataIndex: 'option', valueType: 'option', render: () => ( <> - 配置 + Configuration - 订阅警报 + Subscribe to alerts ), }, @@ -61,7 +61,7 @@ const TableList: React.FC = () => { return ( - headerTitle="查询表格" + headerTitle="Enquiry form" actionRef={actionRef} rowKey="key" onChange={(_, _filter, _sorter) => { @@ -75,7 +75,7 @@ const TableList: React.FC = () => { , , selectedRows && selectedRows.length > 0 && ( = () => { }} selectedKeys={[]} > - 批量删除 - 批量审批 + Batch deletion + Batch approval } > ), ]} tableAlertRender={(selectedRowKeys, selectedRows) => (
- 已选择 {selectedRowKeys.length} 项   + Selected {selectedRowKeys.length} item   - 服务调用次数总计 {selectedRows.reduce((pre, item) => pre + item.callNo, 0)} 万 + Total number of service calls{selectedRows.reduce((pre, item) => pre + item.callNo, 0)} 万
)}