-
-
Notifications
You must be signed in to change notification settings - Fork 392
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: add customize feedrate for ControlPanel.vue (fix #49)
Signed-off-by: Stefan Dej <[email protected]>
- Loading branch information
Showing
5 changed files
with
95 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<style> | ||
.webcamImage { | ||
width: 100%; | ||
} | ||
</style> | ||
|
||
<template> | ||
<v-card> | ||
<v-toolbar flat dense > | ||
<v-toolbar-title> | ||
<span class="subheading"><v-icon left>mdi-tune</v-icon>Control & Extruder</span> | ||
</v-toolbar-title> | ||
</v-toolbar> | ||
<v-card-text class="pt-2 pb-0"> | ||
<v-text-field | ||
label="Feedrate XY" | ||
v-model="feedrateXY" | ||
type="number" | ||
suffix="mm/s" | ||
></v-text-field> | ||
<v-text-field | ||
label="Feedrate Z" | ||
v-model="feedrateZ" | ||
type="number" | ||
suffix="mm/s" | ||
></v-text-field> | ||
</v-card-text> | ||
</v-card> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
components: { | ||
}, | ||
data: function() { | ||
return { | ||
} | ||
}, | ||
computed: { | ||
feedrateXY: { | ||
get() { | ||
return this.$store.state.gui.dashboard.control.feedrateXY | ||
}, | ||
set(value) { | ||
return this.$store.dispatch('gui/setSettings', { dashboard: { control: { feedrateXY: value } } }) | ||
} | ||
}, | ||
feedrateZ: { | ||
get() { | ||
return this.$store.state.gui.dashboard.control.feedrateZ | ||
}, | ||
set(value) { | ||
return this.$store.dispatch('gui/setSettings', { dashboard: { control: { feedrateZ: value } } }) | ||
} | ||
}, | ||
}, | ||
methods: { | ||
} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters