Skip to content

Commit 4dcc4f6

Browse files
committed
master: Fixed
1 parent 395ae62 commit 4dcc4f6

File tree

5 files changed

+37
-22
lines changed

5 files changed

+37
-22
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
# 安装
66

77
```bash
8-
npm install vue3-time-line
8+
npm install @boyzcf/vue3-time-line
99
or
10-
pnpm install vue3-time-line
10+
pnpm install @boyzcf/vue3-time-line
1111
or
12-
yarn add vue3-time-line
12+
yarn add @boyzcf/vue3-time-line
1313
```
1414

1515
# 全局引入
@@ -19,7 +19,7 @@ yarn add vue3-time-line
1919
import { createApp } from 'vue'
2020
import App from './App.vue'
2121

22-
import TimeLine from 'time-line'
22+
import TimeLine from '@boyzcf/vue3-time-line'
2323

2424
const app = createApp(App)
2525

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,26 @@
11
{
2-
"name": "vue3-time-line",
3-
"version": "0.0.2",
4-
"description": "一个基于Vue3、Vite的时间轴组件,一般用于监控视频的回放",
5-
"main": "./lib/vue3-time-line.umd.cjs",
2+
"name": "@boyzcf/vue3-time-line",
3+
"version": "1.0.1",
4+
"description": "一个基于Vue3的时间轴组件,一般用于监控视频的回放",
5+
"main": "./lib/vue3-time-line.umd.js",
66
"module": "./lib/vue3-time-line.mjs",
77
"types": "./lib/vue3-time-line.d.ts",
88
"files": [
9-
"lib",
10-
"package.json",
11-
"README.md"
9+
"lib"
1210
],
1311
"exports": {
1412
".": {
15-
"import": "./vue3-time-line.js",
16-
"require": "./vue3-time-line.umd.cjs"
13+
"import": "./lib/vue3-time-line.mjs",
14+
"require": "./lib/vue3-time-line.umd.js"
1715
}
1816
},
1917
"keywords": [
2018
"vue3",
2119
"@boyzcf/vue3-time-line",
2220
"canvas",
2321
"timeline",
24-
"time axis"
22+
"time axis",
23+
"vue3-time-line"
2524
],
2625
"author": "boyzcf",
2726
"scripts": {
@@ -34,6 +33,7 @@
3433
"format": "prettier --write src/"
3534
},
3635
"dependencies": {
36+
"@boyzcf/vue3-time-line": "^1.0.1",
3737
"dayjs": "^1.11.10",
3838
"sass": "^1.69.3",
3939
"vue": "^3.3.4",

pnpm-lock.yaml

Lines changed: 15 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

shims-vue.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,10 @@ declare module '*.vue' {
33
import { DefineComponent } from 'vue'
44
const component: DefineComponent<{}, {}, any>
55
export default component
6+
}
7+
8+
declare module '@boyzcf/vue3-time-line' {
9+
import { Plugin } from 'vue'
10+
const plugin: Plugin
11+
export default plugin
612
}

src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { createApp } from 'vue'
22
import App from './App.vue'
3-
import TimeLine from './components/TimeLine/index'
3+
// import TimeLine from './components/TimeLine/index'
44
// import TimeLine from '../lib/vue3-time-line.mjs'
5-
// import TimeLine from 'vue3-time-line'
5+
import TimeLine from '@boyzcf/vue3-time-line'
66

77
const app = createApp(App)
88

0 commit comments

Comments
 (0)