File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -465,7 +465,12 @@ const replacements = {
465465 VSlider : {
466466 backgroundColor : false ,
467467 tickLabels : 'ticks' ,
468- ticks : { custom : 'show-ticks' } ,
468+ ticks ( attr ) {
469+ return ( ! attr . directive && ! attr . value ) ||
470+ ( attr . directive && [ true , false ] . includes ( attr . value . expression . value ) )
471+ ? 'show-ticks'
472+ : true
473+ } ,
469474 vertical : { name : 'direction' , value : 'vertical' } ,
470475 height : false ,
471476 loading : false ,
@@ -475,7 +480,12 @@ const replacements = {
475480 VRangeSlider : {
476481 backgroundColor : false ,
477482 tickLabels : 'ticks' ,
478- ticks : { custom : 'show-ticks' } ,
483+ ticks ( attr ) {
484+ return ( ! attr . directive && ! attr . value ) ||
485+ ( attr . directive && [ true , false ] . includes ( attr . value . expression . value ) )
486+ ? 'show-ticks'
487+ : true
488+ } ,
479489 vertical : { name : 'direction' , value : 'vertical' } ,
480490 height : false ,
481491 loading : false ,
You can’t perform that action at this time.
0 commit comments