Tarui 窗口设置 "decorations": false 后,如何设置圆角
修改tauri.conf.json,将transparent设为true
{
"windows": [
{
"label": "main",
"decorations": false,
"transparent": true
}
],
}
到index.html添加圆角样式
<body>
<div id="app" class="h-screen w-screen bg-white rounded-lg"></div>
<script type="module" src="/src/main.ts"></script>
</body>

浙公网安备 33010602011771号