|
|
@ -46,9 +46,14 @@ class Stepper { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public function alpineProp($prop, $modifier) { |
|
|
public function alpineProp($prop, $modifier) { |
|
|
|
|
|
$v = '$event.target.value'; |
|
|
|
|
|
$bv = '($event.target || $event.originalTarget).value'; |
|
|
|
|
|
|
|
|
return ':value="units.'.$modifier.'.to('.$prop.')" |
|
|
return ':value="units.'.$modifier.'.to('.$prop.')" |
|
|
@focus="$event.target.value = '.$prop.'" |
|
|
@focus="$event.target.value = '.$prop.'" |
|
|
@change="'.$prop.' = units.'.$modifier.'.from($event.target.value)"'; |
|
|
|
|
|
|
|
|
@blur="console.log($event); '.$bv.' = units.'.$modifier.'.to('.$prop.');" |
|
|
|
|
|
@change="console.log(\'change\'); '.$prop.' = units.'.$modifier.'.from('.$v.');" |
|
|
|
|
|
onblur="console.log(\'RRRR\');"'; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public function onSubmit() { |
|
|
public function onSubmit() { |
|
|
|