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 55# 安装
66
77``` bash
8- npm install time-line
8+ npm install @boyzcf/vue3- time-line
99or
10- pnpm install time-line
10+ pnpm install @boyzcf/vue3- time-line
1111or
12- yarn add time-line
12+ yarn add @boyzcf/vue3- time-line
1313```
1414
1515# 全局引入
@@ -499,7 +499,7 @@ onBeforeUnmount(() => {
499499那么如果内置的规则不满足的话,就可以自定义,比如` 3天 ` 的时间分辨率下我想只显示` 12 ` 倍数的小时,可以这么做:
500500
501501``` html
502- <TimeLine :customShowTime =" customShowTime" " ></TimeLine>
502+ <TimeLine :customShowTime =" customShowTime" ></TimeLine >
503503```
504504
505505``` js
Original file line number Diff line number Diff line change 55# 安装
66
77``` bash
8- npm install time-line
8+ npm install @boyzcf/vue3- time-line
99or
10- pnpm install time-line
10+ pnpm install @boyzcf/vue3- time-line
1111or
12- yarn add time-line
12+ yarn add @boyzcf/vue3- time-line
1313```
1414
1515# 全局引入
@@ -499,7 +499,7 @@ onBeforeUnmount(() => {
499499那么如果内置的规则不满足的话,就可以自定义,比如` 3天 ` 的时间分辨率下我想只显示` 12 ` 倍数的小时,可以这么做:
500500
501501``` html
502- <TimeLine :customShowTime =" customShowTime" " ></TimeLine>
502+ <TimeLine :customShowTime =" customShowTime" ></TimeLine >
503503```
504504
505505``` js
Original file line number Diff line number Diff line change 11{
2- "name" : " time-line" ,
2+ "name" : " @boyzcf/vue3- time-line" ,
33 "version" : " 0.0.1" ,
44 "private" : false ,
55 "description" : " 一个基于Vue3、Vite的时间轴组件,一般用于监控视频的回放" ,
1212 }
1313 },
1414 "keywords" : [
15- " vue3-time-line" ,
15+ " vue3" ,
16+ " @boyzcf/vue3-time-line" ,
1617 " canvas" ,
1718 " timeline" ,
1819 " time axis"
2829 },
2930 "dependencies" : {
3031 "dayjs" : " ^1.11.10"
32+ },
33+ "publishConfig" : {
34+ "access" : " public" ,
35+ "registry" : " https://registry.npmjs.org/"
3136 }
3237}
Original file line number Diff line number Diff line change @@ -9,11 +9,11 @@ import { resolve } from 'path'
99export default defineConfig ( {
1010 plugins : [ vue ( ) , vueJsx ( ) ] ,
1111 build : {
12- outDir : 'time-line' ,
12+ outDir : 'vue3- time-line' ,
1313 lib : {
1414 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'
1717 }
1818 } ,
1919 rollupOptions : {
You can’t perform that action at this time.
0 commit comments