Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
vue-star-rate
Advanced tools
a simple star rating component for morden mobile browsers
npm i vue-star-rate
<template>
<div class="hello">
<span>MyRatings</span>
<star-rating
:size= 'size'
:color= 'color'
:score= 'score'
:maxScore= 'maxScore'
:readOnly= 'readOnly'
@rate='rate'
></star-rating>
<span>{{score}}</span>
</div>
</template>
<script>
import starRating from "vue-star-rate";
export default {
name: "HelloWorld",
components: {
starRating
},
data() {
return {
score: 3.5,
color:'#f00',
size:1,
maxScore:5,
readOnly:false
};
},
methods: {
rate(val) {
this.score = val;
}
}
}
</script>
Attribute | Description | Type | Default |
---|---|---|---|
score | The initial rating | Number | 0 |
maxScore | The max score | Number | 5 |
size | The fontSize of star, you should use rem unit | Number | 1 |
color | The color of star | String | #f7ba2a |
readOnly | whether Rate is read-only | Boolean | false |
Event Name | Description | Parameters |
---|---|---|
rate | Triggers when you click the star to rate | value of your rating |
MIT
FAQs
a vue star rating component for mobile
The npm package vue-star-rate receives a total of 5 weekly downloads. As such, vue-star-rate popularity was classified as not popular.
We found that vue-star-rate demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.