diff --git a/src/components/echarts/config.ts b/src/components/echarts/config.ts index 6f1f5055..540101ee 100644 --- a/src/components/echarts/config.ts +++ b/src/components/echarts/config.ts @@ -60,7 +60,7 @@ export const yAxis = { // max: 100, // min: 0, nameTextStyle: { - padding: [0, 0, 0, -25] + padding: [0, 0, 0, -20] }, splitLine: { show: true, diff --git a/src/components/seal-table/components/table-row.tsx b/src/components/seal-table/components/table-row.tsx index 94ae8bda..2db0b53f 100644 --- a/src/components/seal-table/components/table-row.tsx +++ b/src/components/seal-table/components/table-row.tsx @@ -61,13 +61,13 @@ const TableRow: React.FC< } }, [rowSelection]); - useEffect(() => { - if (expandedRowKeys?.includes(record[rowKey])) { - setExpanded(true); - } else { - setExpanded(false); - } - }, [expandedRowKeys]); + // useEffect(() => { + // if (expandedRowKeys?.includes(record[rowKey])) { + // setExpanded(true); + // } else { + // setExpanded(false); + // } + // }, [expandedRowKeys]); useEffect(() => { return () => { diff --git a/src/locales/en-US/apikeys.ts b/src/locales/en-US/apikeys.ts index 0f584da9..581ac892 100644 --- a/src/locales/en-US/apikeys.ts +++ b/src/locales/en-US/apikeys.ts @@ -10,5 +10,5 @@ export default { 'apikeys.form.expiration.7days': '7 days', 'apikeys.form.expiration.1month': '1 month', 'apikeys.form.expiration.6months': '6 months', - 'apikeys.form.expiration.never': 'never' + 'apikeys.form.expiration.never': 'No expiration' }; diff --git a/src/locales/zh-CN/apikeys.ts b/src/locales/zh-CN/apikeys.ts index d6b5d79e..6142e8ba 100644 --- a/src/locales/zh-CN/apikeys.ts +++ b/src/locales/zh-CN/apikeys.ts @@ -9,5 +9,5 @@ export default { 'apikeys.form.expiration.7days': '7天', 'apikeys.form.expiration.1month': '1个月', 'apikeys.form.expiration.6months': '6个月', - 'apikeys.form.expiration.never': '永不' + 'apikeys.form.expiration.never': '永不过期' }; diff --git a/src/pages/playground/components/view-code-modal.tsx b/src/pages/playground/components/view-code-modal.tsx index 89efa476..f9fbb8f2 100644 --- a/src/pages/playground/components/view-code-modal.tsx +++ b/src/pages/playground/components/view-code-modal.tsx @@ -2,7 +2,7 @@ import EditorWrap from '@/components/editor-wrap'; import { BulbOutlined } from '@ant-design/icons'; import Editor from '@monaco-editor/react'; import { useIntl } from '@umijs/max'; -import { Button, Modal, Spin } from 'antd'; +import { Button, Modal } from 'antd'; import _ from 'lodash'; import React, { useEffect, useRef, useState } from 'react'; @@ -103,6 +103,7 @@ const ViewCodeModal: React.FC = (props) => { const handleEditorDidMount = (editor: any, monaco: any) => { editorRef.current = editor; setLoaded(true); + console.log('loaded===='); }; const handleOnChangeLang = (value: string) => { @@ -146,7 +147,7 @@ const ViewCodeModal: React.FC = (props) => {
{intl.formatMessage({ id: 'playground.viewcode.info' })}
- +
= (props) => { > {' '} - {intl.formatMessage({ id: 'playground.viewcode.here' })} + {intl.formatMessage({ + id: 'playground.viewcode.here' + })} ) @@ -189,7 +192,7 @@ const ViewCodeModal: React.FC = (props) => { )}
-
+ );