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:
parent
f2568f1899
commit
9ee3157780
@ -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"
|
||||
|
@ -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={[
|
||||
|
@ -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.
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user