Coder Social home page Coder Social logo

vue-color-picker-wheel's People

Contributors

nino-vrijman avatar peerbolte avatar stijlbreuk-dev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

vue-color-picker-wheel's Issues

How to use color-change

I tried to use color-change event listener and I don't see the color value:

<template>
  <ColorPicker
    :color-change="setHex"
    :startColor="finalSettings.button_color"
    v-model="finalSettings.button_color" />
</template>
<script>
import ColorPicker from 'vue-color-picker-wheel';

export default {
        components: {
            ColorPicker,
        },
        props: {
            ...
        },
        data: function () {
            return {
                finalSettings: this.settings,
                color: this.settings.button_color,
            }
        },
        methods: {
            setHex: function(colorPalette) {
                console.log(colorPalette); // <- the console didn't display this.
                this.color = colorPalette;
            },
        }
   }
</script>

Color selection failing when browser window is scrolled

I found that the color picker was not following my mouse clicks correctly. I tracked the problem down to widgetCoords(event), which was returning incorrect co-ordinates when the browser window was scrolled away from the start position.
Suggested solution: replace all instances of pageX and pageY with clientX and clientY.

Add support for v-model

Add support for v-model by using 'value' as a prop and by using '$emit('input')' when changes have occured.

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.