# touch-emulator-suport-shawdom **Repository Path**: xccjh/touch-emulator-suport-shawdom ## Basic Information - **Project Name**: touch-emulator-suport-shawdom - **Description**: 在桌面端上模拟移动端 touch 事件,支持web Components ShawDom - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: https://www.npmjs.com/package/@xccjh/touch-emulator-suport-shawdom - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-05-16 - **Last Updated**: 2023-05-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Touch Emulator Support web Components ShawDom 在桌面端上模拟移动端 touch 事件,实现方式来自于 [hammerjs/touchemulator](https://github.com/hammerjs/touchemulator). ## 安装 ```shell # with npm npm i @xccjh/touch-emulator-support-shawdom # with yarn yarn add @vant/touch-emulator-support-shawdom # with pnpm pnpm add @vant/touch-emulator-support-shawdom ``` ## 使用指南 直接在代码中引入模块即可,模块会自动完成初始化并生效 ```js import '@xccjh/touch-emulator-support-shawdom'; ``` ## CDN 引入 ```html ``` ## 禁用 touch 模拟 在标签上添加 `data-no-touch-simulate` 属性后,可以使这个标签(以及它的子元素)不触发 `touch` 模拟事件。 ```html
```