一些细节问题
afc163 opened this issue · comments
afc163 commented
- 放在 components 里的不要叫 XxxPage,Page 可以去掉。
- 大写开头。
- 所有
bannerSVG()
的函数调用都改成coverImage={<BannerSVG />}
bannerSVG={<BannerSVG />}
。 - Quotes 也可以提到主题里,感觉其他网站未来也用得上。不过这个不着急。
-
i18n.options.keySeparator = '>';
去掉,提过的。#23 (comment)
afc163 commented
let lefttop1Display = 'block';
let lefttop2Display = 'none';
if (!props.title) {
lefttop1Display = 'none';
lefttop2Display = 'block';
}
- 这种用法不要再出现了。
- 可以直接
const lefttop1Display = props.title ? 'none' : 'block';
lefttop1Display
这个变量如果不是多处使用,不需要有,直接把props.title ? 'none' : 'block'
字面量写到用的地方。
afc163 commented
- advantagesPage 就是 Features ?是的话可以删掉,直接用主题组件。
- companiesPage 同理,没有用到的代码一定要删掉。
- 这里的
-24px
可能有问题,页面检查一下:antvis.github.io/site/pages/about.zh.tsx
Line 20 in 27351af
afc163 commented
afc163 commented
-
proplem
problem
都改成question
.