feat: allow for more decimal places in move-to-input (#976)
This commit is contained in:
parent
8ab59b642a
commit
6f68709f21
@ -5,6 +5,7 @@
|
|||||||
:label="`[ ${label} ]`"
|
:label="`[ ${label} ]`"
|
||||||
:suffix="suffix"
|
:suffix="suffix"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
|
:step="step"
|
||||||
:readonly="readonly"
|
:readonly="readonly"
|
||||||
:error="!validate"
|
:error="!validate"
|
||||||
hide-details="auto"
|
hide-details="auto"
|
||||||
@ -56,6 +57,9 @@ export default class MoveToInput extends Mixins(BaseMixin) {
|
|||||||
@Prop({ type: Number, required: true })
|
@Prop({ type: Number, required: true })
|
||||||
declare readonly positionMin: number
|
declare readonly positionMin: number
|
||||||
|
|
||||||
|
@Prop({ type: Number, required: false, default: 1 })
|
||||||
|
declare readonly step: number
|
||||||
|
|
||||||
@Prop({ type: Boolean, required: false })
|
@Prop({ type: Boolean, required: false })
|
||||||
declare readonly disabled: boolean
|
declare readonly disabled: boolean
|
||||||
|
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
:suffix="'X'"
|
:suffix="'X'"
|
||||||
:position-max="stepperXmax"
|
:position-max="stepperXmax"
|
||||||
:position-min="stepperXmin"
|
:position-min="stepperXmin"
|
||||||
|
:step="0.01"
|
||||||
:current-pos="gcodePositions.x"
|
:current-pos="gcodePositions.x"
|
||||||
:readonly="['printing'].includes(printer_state)"
|
:readonly="['printing'].includes(printer_state)"
|
||||||
:disabled="!xAxisHomed"
|
:disabled="!xAxisHomed"
|
||||||
@ -34,6 +35,7 @@
|
|||||||
:suffix="'Y'"
|
:suffix="'Y'"
|
||||||
:position-max="stepperYmax"
|
:position-max="stepperYmax"
|
||||||
:position-min="stepperYmin"
|
:position-min="stepperYmin"
|
||||||
|
:step="0.01"
|
||||||
:current-pos="gcodePositions.y"
|
:current-pos="gcodePositions.y"
|
||||||
:readonly="['printing'].includes(printer_state)"
|
:readonly="['printing'].includes(printer_state)"
|
||||||
:disabled="!yAxisHomed"
|
:disabled="!yAxisHomed"
|
||||||
@ -47,6 +49,7 @@
|
|||||||
:suffix="'Z'"
|
:suffix="'Z'"
|
||||||
:position-max="stepperZmax"
|
:position-max="stepperZmax"
|
||||||
:position-min="stepperZmin"
|
:position-min="stepperZmin"
|
||||||
|
:step="0.001"
|
||||||
:current-pos="gcodePositions.z"
|
:current-pos="gcodePositions.z"
|
||||||
:readonly="['printing'].includes(printer_state)"
|
:readonly="['printing'].includes(printer_state)"
|
||||||
:disabled="!zAxisHomed"
|
:disabled="!zAxisHomed"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user