chore: release @vant/touch-emulator@1.3.1 (#8987)

This commit is contained in:
neverland 2021-07-06 17:46:15 +08:00 committed by GitHub
parent f595755484
commit a1d95e685c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 1 deletions

View File

@ -29,3 +29,11 @@ import '@vant/touch-emulator';
```html
<script src="https://cdn.jsdelivr.net/npm/@vant/touch-emulator"></script>
```
## 禁用 touch 模拟
在标签上添加 `data-no-touch-simulate` 属性后,可以使这个标签(以及它的子元素)不触发 `touch` 模拟事件。
```html
<div data-no-touch-simulate />
```

View File

@ -1,5 +1,11 @@
# Changelog
### [v1.3.1]
`2021-07-06`
- support data-no-touch-simulate attr
### [v1.3.0]
`2021-05-26`

View File

@ -1,6 +1,6 @@
{
"name": "@vant/touch-emulator",
"version": "1.3.0",
"version": "1.3.1",
"description": "Vant touch emulator",
"main": "index.js",
"publishConfig": {