修改底部版权区域,使用 Wrap 组件来实现文字间的间隔,把结束年份动态获取当前年份 #13
No reviewers
Labels
No Label
bug
component-crypto
component-ui
docs
duplicate
enhancement
help wanted
invalid
misc
platform-android
platform-mac
platform-win
question
test
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: um/um-react#13
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "(deleted):feat/footer"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
修改底部版权区域,使用 Wrap 组件来实现文字间的间隔,把结束年份动态获取当前年份
@ -3,3 +3,4 @@
import { SDKVersion } from './SDKVersion';
export function Footer() {
const year = useMemo(() => new Date().getFullYear(), []);
没有必要过度缓存,这句话跑得挺快的。缓存本身也有开销。
或考虑作为常量放到组件外,这样就不需要缓存了(反正渲染后不会变)
参考文章:
https://jancat.github.io/post/2019/translation-usememo-and-usecallback/
@ -35,3 +28,1 @@
</Link>
。
</Text>
<Wrap>
这个文字改 Wrap 组件控制空格的更改感觉没必要?
反而变得复杂了…?
WIP: 修改底部版权区域,使用 Wrap 组件来实现文字间的间隔,把结束年份动态获取当前年份to 修改底部版权区域,使用 Wrap 组件来实现文字间的间隔,把结束年份动态获取当前年份挑选了部分更改并已合并到主分支。
Pull request closed