Giter Club home page Giter Club logo

Comments (9)

NightCatSama avatar NightCatSama commented on May 28, 2024

Is this able to solve your problem?

<slider :max="price.max" v-model="price.value"></slider>

from vue-slider-component.

bubnenkoff avatar bubnenkoff commented on May 28, 2024

Can't understand how to change default style.

I am trying to do next:

  <div class="MySlider"><vue-slider ref="slider" :speed="price.speed" :interval="price.interval" :formatter = "price.formatter" :max="price.max" :min="price.min" v-model="price.value"></vue-slider></div>
                tooltipStyle: {
						backgroundColor: '#red',
						borderColor: '#666'
					},
                price: {
                    value: [1.5,10],
                    min: 1,
                    max: 10,
                    interval: 0.5,
                    formatter: "{value} тыс. ₽",
                    bgstyle: {
                        backgroundColor: '#red',
                    }
                }

Can I put style tooltipStyle outside if I need it's global? How I should bind slider and style?

from vue-slider-component.

bubnenkoff avatar bubnenkoff commented on May 28, 2024

I can't understand how binding with default parameters works.

For example my code:

    export default {
        name : "LeftMenu",
        data() {
            return {
                default: {
                tooltipStyle: {
				backgroundColor: '#red',
				borderColor: '#666'
				}
                },
                price: {
                    value: [1.5,10],
                    min: 1,
                    max: 10,
                    interval: 0.5,
                    formatter: "{value} тыс. ₽"
                }

What should I add to slider to bind it with default?

from vue-slider-component.

NightCatSama avatar NightCatSama commented on May 28, 2024

Did not see that you have passed tooltip-style down to the component. just like:

<vue-slider :tooltip-style="tooltipStyle"></vue-slider>
// ....
data() {
    return {
        tooltipStyle: {
            backgroundColor: '#red',
            borderColor: '#666'
        }
    }
}

from vue-slider-component.

bubnenkoff avatar bubnenkoff commented on May 28, 2024

Do not work :(
default

from vue-slider-component.

bubnenkoff avatar bubnenkoff commented on May 28, 2024

It's seems that default keyword is bad.

I changed

 :tooltip-style="my.processStyle"

And:

    export default {
        name : "LeftMenu",
        data() {
            return {
                my: {
                processStyle: 
                {
						backgroundColor: 'green',
						borderColor: '#666'
				},
                tooltipStyle: 
                {
				backgroundColor: 'red',

And got it work. But with default it's not working

from vue-slider-component.

NightCatSama avatar NightCatSama commented on May 28, 2024

I'm sorry I wrote #red in the reply, should be red.

After my test, the cause of the bug is not a default keyword.

from vue-slider-component.

bubnenkoff avatar bubnenkoff commented on May 28, 2024

After my test, the cause of the bug is not a default keyword.
It's blame on this keyword...
default

from vue-slider-component.

NightCatSama avatar NightCatSama commented on May 28, 2024

default is the keyword to the vue. so there is no relationship with the components.

from vue-slider-component.

Related Issues (20)

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.