* 所有的 CDN 依賴已全部 npm 化 * Webpack? 一邊去! Vite 太好用啦! * 將 Imports.ts 剔除 * 移除了大量的靜態文件 * 將 index.html 的部分代碼分離 * 修改 deno task * 移除了動態編譯頁面的支持 * ./static 引用全部變更為 npm 包引用
28 lines
736 B
JavaScript
28 lines
736 B
JavaScript
/**
|
|
* 一条系统提示消息
|
|
* @returns { React.JSX.Element }
|
|
*/
|
|
export default function SystemMessage({ children } = {}) {
|
|
return (
|
|
<div style={{
|
|
width: '100%',
|
|
flexDirection: 'column',
|
|
display: 'flex',
|
|
marginTop: '25px',
|
|
marginBottom: '20px',
|
|
}}>
|
|
<mdui-card variant="filled"
|
|
style={{
|
|
alignSelf: 'center',
|
|
paddingTop: '9px',
|
|
paddingBottom: '9px',
|
|
paddingLeft: '18px',
|
|
paddingRight: '18px',
|
|
fontSize: '92%',
|
|
}}>
|
|
{children}
|
|
</mdui-card>
|
|
</div>
|
|
)
|
|
}
|