File tree Expand file tree Collapse file tree 4 files changed +18
-13
lines changed Expand file tree Collapse file tree 4 files changed +18
-13
lines changed Original file line number Diff line number Diff line change 5
5
# 安装
6
6
7
7
``` bash
8
- npm install time-line
8
+ npm install @boyzcf/vue3- time-line
9
9
or
10
- pnpm install time-line
10
+ pnpm install @boyzcf/vue3- time-line
11
11
or
12
- yarn add time-line
12
+ yarn add @boyzcf/vue3- time-line
13
13
```
14
14
15
15
# 全局引入
@@ -499,7 +499,7 @@ onBeforeUnmount(() => {
499
499
那么如果内置的规则不满足的话,就可以自定义,比如` 3天 ` 的时间分辨率下我想只显示` 12 ` 倍数的小时,可以这么做:
500
500
501
501
``` html
502
- <TimeLine :customShowTime =" customShowTime" " ></TimeLine>
502
+ <TimeLine :customShowTime =" customShowTime" ></TimeLine >
503
503
```
504
504
505
505
``` js
Original file line number Diff line number Diff line change 5
5
# 安装
6
6
7
7
``` bash
8
- npm install time-line
8
+ npm install @boyzcf/vue3- time-line
9
9
or
10
- pnpm install time-line
10
+ pnpm install @boyzcf/vue3- time-line
11
11
or
12
- yarn add time-line
12
+ yarn add @boyzcf/vue3- time-line
13
13
```
14
14
15
15
# 全局引入
@@ -499,7 +499,7 @@ onBeforeUnmount(() => {
499
499
那么如果内置的规则不满足的话,就可以自定义,比如` 3天 ` 的时间分辨率下我想只显示` 12 ` 倍数的小时,可以这么做:
500
500
501
501
``` html
502
- <TimeLine :customShowTime =" customShowTime" " ></TimeLine>
502
+ <TimeLine :customShowTime =" customShowTime" ></TimeLine >
503
503
```
504
504
505
505
``` js
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " time-line" ,
2
+ "name" : " @boyzcf/vue3- time-line" ,
3
3
"version" : " 0.0.1" ,
4
4
"private" : false ,
5
5
"description" : " 一个基于Vue3、Vite的时间轴组件,一般用于监控视频的回放" ,
12
12
}
13
13
},
14
14
"keywords" : [
15
- " vue3-time-line" ,
15
+ " vue3" ,
16
+ " @boyzcf/vue3-time-line" ,
16
17
" canvas" ,
17
18
" timeline" ,
18
19
" time axis"
28
29
},
29
30
"dependencies" : {
30
31
"dayjs" : " ^1.11.10"
32
+ },
33
+ "publishConfig" : {
34
+ "access" : " public" ,
35
+ "registry" : " https://registry.npmjs.org/"
31
36
}
32
37
}
Original file line number Diff line number Diff line change @@ -9,11 +9,11 @@ import { resolve } from 'path'
9
9
export default defineConfig ( {
10
10
plugins : [ vue ( ) , vueJsx ( ) ] ,
11
11
build : {
12
- outDir : 'time-line' ,
12
+ outDir : 'vue3- time-line' ,
13
13
lib : {
14
14
entry : resolve ( __dirname , './src/components/TimeLine/index.js' ) , //指定组件编译入口文件
15
- name : 'time-line' ,
16
- fileName : 'time-line'
15
+ name : 'vue3- time-line' ,
16
+ fileName : 'vue3- time-line'
17
17
}
18
18
} ,
19
19
rollupOptions : {
You can’t perform that action at this time.
0 commit comments