Gathering detailed insights and metrics for vue-core-image-upload-c
Gathering detailed insights and metrics for vue-core-image-upload-c
Gathering detailed insights and metrics for vue-core-image-upload-c
Gathering detailed insights and metrics for vue-core-image-upload-c
npm install vue-core-image-upload-c
Typescript
Module System
Vue (60.74%)
Less (24.68%)
JavaScript (12.75%)
CSS (0.9%)
PHP (0.8%)
HTML (0.14%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
1,352 Stars
165 Commits
206 Forks
37 Watchers
6 Branches
14 Contributors
Updated on Jul 04, 2025
Latest Version
2.3.16
Package Id
vue-core-image-upload-c@2.3.16
Unpacked Size
123.93 kB
Size
37.24 kB
File Count
32
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
3
26
a vue plugin for image upload and crop ( Support 📱 IE10+)
if you use vue.js(<=2.0), you should go here.Or select 1.x.x version.
1npm i vue-core-image-upload --save
Code Example (ES6)
1<vue-core-image-upload 2 :class="['btn', 'btn-primary']" 3 :crop="false" 4 @imageuploaded="imageuploaded" 5 :data="data" 6 :max-file-size="5242880" 7 url="your server url" > 8</vue-core-image-upload>
1
2
3import VueCoreImageUpload from 'vue-core-image-upload';
4
5new Vue({
6 el: '#app',
7 components: {
8 'vue-core-image-upload': VueCoreImageUpload
9 },
10 data: {
11 src: 'http://img1.vued.vanthink.cn/vued0a233185b6027244f9d43e653227439a.png',
12 },
13 methods: {
14 imageuploaded(res) {
15 if (res.errcode == 0) {
16 this.src = 'http://img1.vued.vanthink.cn/vued751d13a9cb5376b89cb6719e86f591f3.png';
17 }
18 }
19 }
20});
NUXT
1import Vue from 'vue'; 2import VueCoreImageUpload from 'vue-core-image-upload/dist/ssr'; 3 4Vue.use( VueCoreImageUpload ); 5 6plugins: [ 7 { src: '~plugins/vue-core-image-upload.js', ssr: false } 8]
Props | Data Type | Example | Details |
---|---|---|---|
url | String | '/crop.php' | Your server api |
text | String | 'Upload Image' | The text of your uploading button |
inputOfFile | String | 'file' | Yout input[file] name |
extensions | String | 'png,jpg,gif' | Limit the image type |
crop | Boolean | 'server' | Crop image option |
cropRatio | String | '1:1' | The cropped image shape |
cropBtn | Object | {ok:'Save','cancel':'Give Up'} | The Text of cropping button text |
maxFileSize | Number | 10485760(10M) | Limit the size of the file |
maxWidth | Number | 150 | The maximum width of cropped image |
maxheight | Number | 150 | 限制图片的最大高度 |
inputAccept | string | 'image/*' / 'image/jpg,image/jpeg,image/png' | the input[file] accept |
compress | Number | 50 | Set the quality of compressed image |
isXhr | Boolean | true | IF cancel ajax uploading |
headers | Object | {auth: xxxxx} | Set customed header when ajax uploading |
data | Object | {auth: xxxxx} | Set customed data when ajax posting server |
Your contributions and suggestions are welcome 😄😄😄💐💐💐.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
Found 11/18 approved changesets -- score normalized to 6
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More