Skip to content

Commit

Permalink
🐛fix(pkg-name): 修改包名
Browse files Browse the repository at this point in the history
  • Loading branch information
Ten-K committed Aug 27, 2022
1 parent f5fdd5e commit 3a5e869
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
## 📦 安装

```bash
pnpm i worker-timer
pnpm i simple-worker-timer
```

## 🚗 用法

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

<template>
<WorkerTimer />
<SimpleWorkerTimer />
</template>
```
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "worker-timer",
"name": "simple-worker-timer",
"version": "1.0.0",
"sideEffects": false,
"description": "一个基于web worker的翻牌计时器",
Expand Down
4 changes: 2 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup lang="ts">
import WorkerTimer from './components/index'
import SimpleWorkerTimer from './components/index'
</script>

<template>
<WorkerTimer />
<SimpleWorkerTimer />
</template>
2 changes: 1 addition & 1 deletion src/components/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { HTMLElementPlus } from '../types/index'
import { ref, unref, nextTick, onUnmounted, defineComponent } from 'vue'

export default defineComponent({
name: 'WorkerTimer',
name: 'SimpleWorkerTimer',
setup() {
const worker = ref<Worker | null>(null)
const flipObjs = ref<(HTMLElementPlus | null)[]>([])
Expand Down

0 comments on commit 3a5e869

Please sign in to comment.