Skip to content

Commit

Permalink
docs(dialog): 增加 lock-scroll 说明 (#3082)
Browse files Browse the repository at this point in the history
  • Loading branch information
eiinu authored May 17, 2024
1 parent 87f044d commit 0c84db1
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/packages/__VUE/dialog/doc.taro.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,30 @@ const verticalClick = () => {

:::

### lock-scroll

`lock-scroll` 属性,锁定背景,禁止滚动穿透,默认值为 `true`

```vue
<template>
<nut-dialog>
<view>在该内容区域溢出时,无法滑动</view>
</nut-dialog>
</template>
```

如果需要内容支持溢出滚动,则需要包裹一层 `scroll-view` 组件。

```vue
<template>
<nut-dialog>
<scroll-view>
<view>在该内容溢出时,则可以正常滑动</view>
</scroll-view>
</nut-dialog>
</template>
```

## API

### Props
Expand Down

0 comments on commit 0c84db1

Please sign in to comment.