5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-02 21:10:54 +08:00

Update website. Show deprecation notice for

This commit is contained in:
Lea Anthony 2022-08-18 20:55:05 +10:00
parent f2568f1899
commit 9ee3157780
No known key found for this signature in database
GPG Key ID: 33DAF7BB90A58405
10 changed files with 41 additions and 24 deletions

View File

@ -2,9 +2,6 @@
sidebar_position: 2
---
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
# Creating a Project
## Project Generation
@ -14,6 +11,8 @@ Now that the CLI is installed, you can generate a new project by using the `wail
Pick your favourite framework:
<!-- @formatter:off -->
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
<Tabs
defaultValue="Svelte"

View File

@ -2,9 +2,6 @@
sidebar_position: 1
---
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
# Installation
## Supported Platforms
@ -42,6 +39,9 @@ You will also need to install platform specific dependencies:
<!-- @formatter:off -->
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
<Tabs
defaultValue="Windows"
values={[

View File

@ -4,6 +4,18 @@
Wails supports applications with no frame. This can be achieved by using the [frameless](../reference/options.mdx#frameless)
field in [Application Options](../reference/options.mdx#application-options).
:::warning
The `data-wails-drag` attribute is being deprecated in favour of the following CSS style:
`style="--wails-draggable:drag"`. You can use `style="--wails-draggable:no-drag"` to disable the drag behaviour.
For this release only, you can test this by setting the following application option:
```go
Experimental: &options.Experimental{
UseCSSDrag: true,
},
```
:::
Wails offers a simple solution for dragging the window: Any HTML element that has the attribute "data-wails-drag" will
act as a "drag handle". This property applies to all nested elements. If you need to indicate that a nested element
should not drag, then use the attribute 'data-wails-no-drag' on that element.

View File

@ -2,9 +2,6 @@
sidebar_position: 2
---
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
# Creating a Project
## Project Generation
@ -14,6 +11,8 @@ Now that the CLI is installed, you can generate a new project by using the `wail
Pick your favourite framework:
<!-- @formatter:off -->
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
<Tabs
defaultValue="Svelte"

View File

@ -2,9 +2,6 @@
sidebar_position: 1
---
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
# Installation
## Supported Platforms
@ -41,6 +38,8 @@ Run `npm --version` to verify.
You will also need to install platform specific dependencies:
<!-- @formatter:off -->
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
<Tabs
defaultValue="Windows"

View File

@ -2,9 +2,6 @@
sidebar_position: 2
---
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
# Creating a Project
## Project Generation
@ -14,6 +11,8 @@ Now that the CLI is installed, you can generate a new project by using the `wail
Pick your favourite framework:
<!-- @formatter:off -->
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
<Tabs
defaultValue="Svelte"

View File

@ -2,9 +2,6 @@
sidebar_position: 1
---
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
# Installation
## Supported Platforms
@ -41,6 +38,8 @@ Run `npm --version` to verify.
You will also need to install platform specific dependencies:
<!-- @formatter:off -->
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
<Tabs
defaultValue="Windows"

View File

@ -2,9 +2,6 @@
sidebar_position: 2
---
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
# 创建项目
## 项目生成
@ -14,6 +11,8 @@ import TabItem from "@theme/TabItem";
Pick your favourite framework:
<!-- @formatter:off -->
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
<Tabs
defaultValue="Svelte"

View File

@ -2,9 +2,6 @@
sidebar_position: 1
---
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
# 安装
## 支持的平台
@ -41,6 +38,8 @@ Wails 有许多安装前需要的常见依赖项:
您还需要安装指定平台的依赖项:
<!-- @formatter:off -->
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
<Tabs
defaultValue="Windows"

View File

@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Deprecation Notice
The `data-wails-drag` attribute is being deprecated in favour of the following CSS style:
`style="--wails-draggable:drag"`. You can use `style="--wails-draggable:no-drag"` to disable the drag behaviour.
For this release only, you can test this by setting the following application option:
```go
Experimental: &options.Experimental{
UseCSSDrag: true,
},
```
## [v2.0.0-beta.43] - 2022-08-08
### Added