Skip to content

Commit

Permalink
仅支持Vue 2版本
Browse files Browse the repository at this point in the history
  • Loading branch information
geofryzheng committed Mar 29, 2023
1 parent f3afeef commit 0af92ce
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# vue-input-file

上传文件、本地展示(Vue组件
上传文件、本地展示(Vue@2组件

1. npm:<https://www.npmjs.com/package/vue-input-file>
2. demo:<https://realgeoffrey.github.io/vue-input-file/demo/index.html>
Expand All @@ -14,7 +14,7 @@
2. 浏览器引用

```html
<!-- 需要先引入vue:<script src="//unpkg.com/vue"></script> -->
<!-- 需要先引入vue:<script src="//unpkg.com/vue@2"></script> -->
<script src="//unpkg.com/vue-input-file"></script>
```

Expand Down Expand Up @@ -48,7 +48,7 @@
1. 全局注册
```html
<!-- 需要先引入vue:<script src="//unpkg.com/vue"></script> -->
<!-- 需要先引入vue:<script src="//unpkg.com/vue@2"></script> -->
<!-- 需要先引入vue-input-file:<script src="//unpkg.com/vue-input-file"></script> -->
<script>
Expand All @@ -60,7 +60,7 @@
2. 局部注册
```html
<!-- 需要先引入vue:<script src="//unpkg.com/vue"></script> -->
<!-- 需要先引入vue:<script src="//unpkg.com/vue@2"></script> -->
<!-- 需要先引入vue-input-file:<script src="//unpkg.com/vue-input-file"></script> -->
<script>
Expand Down
2 changes: 1 addition & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

</div>

<script src="//unpkg.com/vue"></script>
<script src="//unpkg.com/vue@2"></script>
<script src="//unpkg.com/vue-input-file"></script>
<!-- <script src="../dist/vue-input-file.iife.js"></script> -->

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-input-file",
"description": "上传文件、本地展示(Vue组件",
"description": "上传文件、本地展示(Vue@2组件",
"repository": {
"type": "git",
"url": "[email protected]:realgeoffrey/vue-input-file.git"
Expand Down Expand Up @@ -35,5 +35,5 @@
"rollup-plugin-vue": "5.0.1",
"vue-template-compiler": "^2.6.10"
},
"version": "1.0.2"
"version": "1.0.3"
}

0 comments on commit 0af92ce

Please sign in to comment.