https://github.com/yansenlei/vue-read-file
Vue implementation of ReadFile
https://github.com/yansenlei/vue-read-file
file redux vue
Last synced: 3 months ago
JSON representation
Vue implementation of ReadFile
- Host: GitHub
- URL: https://github.com/yansenlei/vue-read-file
- Owner: yansenlei
- License: mit
- Created: 2018-04-16T09:48:50.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-16T11:07:33.000Z (about 7 years ago)
- Last Synced: 2025-02-09T19:45:49.315Z (4 months ago)
- Topics: file, redux, vue
- Language: Vue
- Homepage: https://yansenlei.github.io/vue-read-file/
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vue-read-file
> 一个简单易用的文件读取组件
## Using
### Install
```bash
# npm
npm install vue-read-file
```### Import
```javascript
import ReadFile from 'vue-read-file'
```### Template
```html```
### Options
| Name | Description | required |
| -------- | -------------------------------- | ------- |
| value | - | true |
| accept | 文件类型限制, 格式: ".txt" | false |
| position | 按钮位置, 可选: "left"、"center" | false |## Build Setup
``` bash
# install dependencies
npm install# build for production with minification
npm run build
```