style: 添加注释, 解构其他组件属性添加默认值

This commit is contained in:
CrescentLeaf
2025-04-18 23:25:47 +08:00
parent aba1202892
commit 1a2cfc424a
2 changed files with 13 additions and 4 deletions

View File

@@ -1,4 +1,8 @@
export default function SystemMessage({ children }) {
/**
* 一条系统提示消息
* @returns { React.JSX.Element }
*/
export default function SystemMessage({ children } = {}) {
return (
<div style={{
width: '100%',