Skip to content

Commit a74bbec

Browse files
committed
master: Updated 修改文档
1 parent 2828c5a commit a74bbec

File tree

4 files changed

+18
-13
lines changed

4 files changed

+18
-13
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 time-line
8+
npm install @boyzcf/vue3-time-line
99
or
10-
pnpm install time-line
10+
pnpm install @boyzcf/vue3-time-line
1111
or
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

time-line/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 time-line
8+
npm install @boyzcf/vue3-time-line
99
or
10-
pnpm install time-line
10+
pnpm install @boyzcf/vue3-time-line
1111
or
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

time-line/package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "time-line",
2+
"name": "@boyzcf/vue3-time-line",
33
"version": "0.0.1",
44
"private": false,
55
"description": "一个基于Vue3、Vite的时间轴组件,一般用于监控视频的回放",
@@ -12,7 +12,8 @@
1212
}
1313
},
1414
"keywords": [
15-
"vue3-time-line",
15+
"vue3",
16+
"@boyzcf/vue3-time-line",
1617
"canvas",
1718
"timeline",
1819
"time axis"
@@ -28,5 +29,9 @@
2829
},
2930
"dependencies": {
3031
"dayjs": "^1.11.10"
32+
},
33+
"publishConfig": {
34+
"access": "public",
35+
"registry": "https://registry.npmjs.org/"
3136
}
3237
}

vite.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ import { resolve } from 'path'
99
export 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: {

0 commit comments

Comments
 (0)