com-qh
TypeScript icon, indicating that this package has built-in type declarations

0.2.11 • Public • Published

Vue 3 + TypeScript + Vite

This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 <script setup> SFCs, check out the script setup docs to learn more.

依赖

注意: 1.可能会报Unable to preventDefault inside passive event listener invocation 这是无关紧要的 不是报错 可以通过去掉default-passive-events依赖解决 并加入brower_patch.ts文件: interface EventTarget { func: ((type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions) => void) | null; }

(function () { if (typeof EventTarget !== "undefined") { let func = EventTarget.prototype.addEventListener; EventTarget.prototype.addEventListener = function (type: string, fn: EventListenerOrEventListenerObject, capture?: boolean | AddEventListenerOptions) { (this as any).func = func; if (typeof capture !== "boolean") { capture = capture || {}; (capture as AddEventListenerOptions).passive = false; } (this as any).func.call(this, type, fn, capture); }; } })(); 在main.ts中引用 import '@/patchto/browser_patch'

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.2.110latest

Version History

VersionDownloads (Last 7 Days)Published
0.2.110
0.2.100
0.2.90
0.2.80
0.2.50
0.2.40
0.2.30
0.2.20
0.2.10
0.2.00
0.1.51
0.1.40
0.1.30
0.1.21
0.1.10
0.1.01
0.0.31
0.0.40
0.0.20
0.0.11

Package Sidebar

Install

npm i com-qh

Weekly Downloads

5

Version

0.2.11

License

ISC

Unpacked Size

7.22 MB

Total Files

31

Last publish

Collaborators

  • snowball_1994