Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: swiper 可通过 css 的 touch-action 设置用户操作行为 #2630

Merged
merged 3 commits into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/packages/swiper/doc.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { Swiper } from '@nutui/nutui-react'

### Basic Usage

`Swiper` sets the user's operation behavior through the CSS `touch-action` attribute. If you need to slide the page vertically when sliding horizontally, you can set it through the `style` attribute of `Swiper`. For the CSS `touch-action` attribute, please refer to [https://developer.mozilla.org/en-US/docs/Web/CSS/touch-action](https://developer.mozilla.org/en-US/docs/Web/CSS/touch-action)
:::demo

```tsx
Expand Down
2 changes: 2 additions & 0 deletions src/packages/swiper/doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import { Swiper } from '@nutui/nutui-react'

### 基础用法

`Swiper` 通过 CSS 的 `touch-action` 属性设置用户的操作行为,如果需要再水平滑动时也可垂直滑动页面,可通过 `Swiper` 的 `style` 属性进行设置。CSS 的 `touch-action` 属性可参考 [https://developer.mozilla.org/zh-CN/docs/Web/CSS/touch-action](https://developer.mozilla.org/zh-CN/docs/Web/CSS/touch-action)

:::demo

```tsx
Expand Down
2 changes: 2 additions & 0 deletions src/packages/swiper/doc.zh-TW.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import { Swiper } from '@nutui/nutui-react'

### 基礎用法

`Swiper` 透過 CSS 的 `touch-action` 屬性設定使用者的操作行為,如果需要再水平滑動時也可垂直滑動頁面,可透過 `Swiper` 的 `style` 屬性進行設定。 CSS 的`touch-action` 屬性可參考[https://developer.mozilla.org/zh-CN/docs/Web/CSS/touch-action](https://developer.mozilla.org/zh-CN/ docs/Web/CSS/touch-action)

:::demo

```tsx
Expand Down
Loading