Giter VIP home page Giter VIP logo

vue-stars's Issues

NPM Broken

Well, I've "upgraded" to vue-cli, and now I can't figure out for the life of me how to build and publish this one little component to npm in a way that makes it importable from other projects.

I've been following the directions here, which mention nothing about what to do as the "main" entry in package.json, so I've been ticking up versions trying different approaches, with no luck.

https://vuejs.org/v2/cookbook/packaging-sfc-for-npm.html

Any help would be greatly appreciated. I'd like to get this version out to everyone (including me, I'm trying to use it in one of my own projects) without having to publish another 50 attempts.

Feature request: custom images instead of chars

I like idea and simplicity of this plugin, but I'm missing the option to use own images instead of just characters.
My goal is to use my custom images in a size I provide. I'll keep an eye on this repository. Thank you for your work so far!

Typescript support?

Hi Guys,

I would like to use your control but I am using typescript. Do you have support for this?

Half stars

Is it possible to fill exact value? In example if the rating is "4.5" five stars are filled but I would need it to fill four and a half stars not to round it to five.

npm package

Hi,

It would be interesting to publish an npm package.

Regards,

hoverLabel

Hello. Thank you for this great plugin.
Did you think about adding hover state slot?

Wrong values when using vue-stars multiple times in one page

When I use the component multiple times in one page as following :

<vue-stars :value="0" hover-color="#bf1e2e" active-color="#bf1e2e" shadow-color="#fff" readonly ></vue-stars>
<vue-stars :value="1" hover-color="#bf1e2e" active-color="#bf1e2e" shadow-color="#fff" readonly ></vue-stars>
<vue-stars :value="3" hover-color="#bf1e2e" active-color="#bf1e2e" shadow-color="#fff" readonly ></vue-stars>

I got this result (see the value):

image

So, how can I keep the value correct?

=================================

I am sorry, I did not read the documentation well

Solution

use unique name attribute for each one.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.