xwpongithub / vue-range-slider

A range slider component based on vue (Vue滑块组件).
MIT License
122 stars 66 forks source link

boolean canot work :( #6

Open TuKun33 opened 4 years ago

TuKun33 commented 4 years ago

tooltip: {
        type: [String, Boolean],
        default: 'always',
        validator: function validator(val) {
          return ['hover', 'always'].indexOf(val) > -1;
       }
},
johnyang90 commented 4 years ago

yea, boolean does not work for tooltip

rhnchn9 commented 4 years ago

Ye, same issue. Possible workaround(until issue is fixed) is to override css of tooltip with display: none; or you can use prop :tooltip-style="{display: 'none'}"

jerearaujo03 commented 4 years ago

Same here. Invalid prop: custom validator check failed for prop "tooltip"