|
@@ -37,7 +37,7 @@ import '../styles/docDemo.scss';
|
|
|
import '../styles/index.scss';
|
|
|
import '../styles/doc.scss';
|
|
|
import cls from 'classnames';
|
|
|
-import { IconLink, IconFile } from '@douyinfe/semi-icons';
|
|
|
+import { IconLink, IconFile, IconHelpCircle } from '@douyinfe/semi-icons';
|
|
|
import { Switch, TabPane, Tabs } from '../../packages/semi-ui';
|
|
|
import DesignPageAnchor from 'components/DesignPageAnchor';
|
|
|
import transContent, {getAnotherSideUrl, isHaveUedDocs, isJumpToDesignSite} from './toUEDUtils/toUED';
|
|
@@ -181,6 +181,27 @@ const components = {
|
|
|
return (
|
|
|
<h2 className="md markdown gatsby-h2" id={makeAnchorId(children)}>
|
|
|
{children}
|
|
|
+ {
|
|
|
+ children === '设计变量'?
|
|
|
+ <Tooltip content={
|
|
|
+ <span>
|
|
|
+ 如何使用可查阅:
|
|
|
+ <a href='https://bytedance.feishu.cn/docx/doxcnVROZf61ey1zFzlErtJfL2d' target="_blank">Semi DSM 手册</a>
|
|
|
+ </span>}
|
|
|
+ >
|
|
|
+ <IconHelpCircle size='large' type="help_circle" style={{ color: ' --semi-color-tertiary-light-default', marginLeft: 4 }}/>
|
|
|
+ </Tooltip>
|
|
|
+ : null
|
|
|
+ }
|
|
|
+ {
|
|
|
+ children === 'Design Tokens' ? <Tooltip content={
|
|
|
+ <span>
|
|
|
+ How to use: Refer to
|
|
|
+ <a href='https://bytedance.feishu.cn/docx/doxcnVROZf61ey1zFzlErtJfL2d' target="_blank">DSM Playbook</a>
|
|
|
+ </span>}>
|
|
|
+ <IconHelpCircle size='large' type="help_circle" style={{ color: ' --semi-color-tertiary-light-default', marginLeft: 4 }} />
|
|
|
+ </Tooltip> : null
|
|
|
+ }
|
|
|
<IconLink
|
|
|
className={'anchor-link-button-icon'}
|
|
|
onClick={() => {
|