diff --git a/.dumi/theme/builtins/Previewer/index.jsx b/.dumi/theme/builtins/Previewer/index.jsx index 840dc8fa55..b0fa3456ef 100644 --- a/.dumi/theme/builtins/Previewer/index.jsx +++ b/.dumi/theme/builtins/Previewer/index.jsx @@ -14,6 +14,7 @@ import CodePenIcon from '../../common/CodePenIcon'; import CodePreview from '../../common/CodePreview'; import CodeSandboxIcon from '../../common/CodeSandboxIcon'; import RiddleIcon from '../../common/RiddleIcon'; +import ExternalLinkIcon from '../../common/ExternalLinkIcon'; import fromDumiProps from './fromDumiProps'; const { ErrorBoundary } = Alert; @@ -456,6 +457,12 @@ createRoot(document.getElementById('container')).render(); })} + }> + + + + + } > diff --git a/.dumi/theme/common/ExternalLinkIcon.jsx b/.dumi/theme/common/ExternalLinkIcon.jsx new file mode 100644 index 0000000000..34b8f1c841 --- /dev/null +++ b/.dumi/theme/common/ExternalLinkIcon.jsx @@ -0,0 +1,13 @@ +import React from 'react'; +import Icon from '@ant-design/icons'; + +const SVGIcon = () => ( + + + + +); + +const ExternalLinkIcon = props => ; + +export default ExternalLinkIcon; diff --git a/.dumi/theme/locales/en-US.json b/.dumi/theme/locales/en-US.json index 9216cfeabe..1ca48d1ac5 100644 --- a/.dumi/theme/locales/en-US.json +++ b/.dumi/theme/locales/en-US.json @@ -34,6 +34,7 @@ "app.demo.codesandbox": "Open in CodeSandbox", "app.demo.stackblitz": "Open in Stackblitz", "app.demo.riddle": "Open in Riddle", + "app.demo.separate": "Open in a new window", "app.home.introduce": "A design system for enterprise-level products. Create an efficient and enjoyable work experience.", "app.home.pr-welcome": "💡 It is an alpha version and still in progress. Contribution from community is welcome!", "app.home.recommend": "Recommended", @@ -135,4 +136,4 @@ "app.components.overview.search": "Search in components", "app.implementation.community": "community", "app.implementation.official": "official" -} +} \ No newline at end of file diff --git a/.dumi/theme/locales/zh-CN.json b/.dumi/theme/locales/zh-CN.json index 46feaf9b89..317e5373cd 100644 --- a/.dumi/theme/locales/zh-CN.json +++ b/.dumi/theme/locales/zh-CN.json @@ -34,6 +34,7 @@ "app.demo.codesandbox": "在 CodeSandbox 中打开", "app.demo.stackblitz": "在 Stackblitz 中打开", "app.demo.riddle": "在 Riddle 中打开", + "app.demo.separate": "在新窗口打开", "app.home.introduce": "企业级产品设计体系,创造高效愉悦的工作体验", "app.home.pr-welcome": "💡 当前为 alpha 版本,仍在开发中。欢迎社区一起共建,让 Ant Design 变得更好!", "app.home.recommend": "精彩推荐", @@ -134,4 +135,4 @@ "app.components.overview.search": "搜索组件", "app.implementation.community": "社区实现", "app.implementation.official": "官方" -} +} \ No newline at end of file