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>
posted @ 2023-04-19 15:36  xxcf  阅读(1552)  评论(0)    收藏  举报