Skip to content

Ten-K/simple-worker-timer

Repository files navigation

simple-worker-timer

  • 基于vue3web worker的翻牌计时器

📦 安装

  # 通过 NPM 安装
  npm i simple-worker-timer
 # 通过 Yarn 安装
  yarn add simple-worker-timer

🕸️ CDN

simple-worker-timer也提供了 UMD 版本,可以直接通过 CDN 加载,然后直接使用:

<link rel="stylesheet" href="https://unpkg.com/simple-worker-timer@1/dist/style.css" />

<!--需要在vue.js之后导入 -->
<script src="https://unpkg.com/simple-worker-timer@1/dist/index.umd.js"></script>

查看HTML 示例

🚗 用法

<script setup lang="ts">
import SimpleWorkerTimer from 'simple-worker-timer'
</script>

<template>
  <SimpleWorkerTimer />
</template>