Skip to content

Commit da5d912

Browse files
author
kei5uke
committed
feat: storage digits
1 parent 021d241 commit da5d912

2 files changed

Lines changed: 6 additions & 17 deletions

File tree

docs/.vitepress/theme/components/price-estimator/LabModal.vue

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,15 @@ const machineType = computed(() => {
3838
})
3939
4040
const save = () => {
41+
console.log(formData.value.scratch)
4142
priceEstimatorStore.addLab({
4243
name: formData.value.name,
4344
subscription: formData.value.subscription,
4445
machineType: formData.value.machineType,
4546
machineSubscription: formData.value.machineSubscription,
4647
archive: Number(formData.value.archive),
4748
work: Number(formData.value.work),
48-
scratch: Number(formData.value.scratch),
49+
scratch: formData.value.scratch,
4950
isDefault: true,
5051
})
5152
emit("close")
@@ -85,15 +86,15 @@ onMounted(() => {
8586
</v-col>
8687

8788
<v-col cols="12" sm="6">
88-
<v-text-field v-model="formData.archive" label="Archive Storage (TB)" type="number" variant="outlined" min="0" placeholder="0.4"></v-text-field>
89+
<v-number-input v-model="formData.archive" label="Archive Storage (TB)" type="number" variant="outlined" :min="0" :step="0.1" :precision="1"></v-number-input>
8990
</v-col>
9091

9192
<v-col cols="12" sm="6">
92-
<v-text-field v-model="formData.work" label="Work Storage (TB)" type="number" variant="outlined" min="0" placeholder="0.3"></v-text-field>
93+
<v-number-input v-model="formData.work" label="Work Storage (TB)" type="number" variant="outlined" :min="0" :step="0.1" :precision="1"></v-number-input>
9394
</v-col>
9495

9596
<v-col cols="12" sm="6">
96-
<v-text-field v-model="formData.scratch" label="Scratch Storage (TB)" type="number" variant="outlined" min="0" placeholder="0.4"></v-text-field>
97+
<v-number-input v-model="formData.scratch" label="Scratch Storage (TB)" type="number" variant="outlined" :min="0" :step="0.1" :precision="1"></v-number-input>
9798
</v-col>
9899
</v-row>
99100
</v-container>

docs/.vitepress/theme/components/price-estimator/StorageModal.vue

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -80,19 +80,7 @@ onMounted(() => {
8080
<v-select :items="['HDD', 'NVME']" v-model="formData.type" label="Type" required variant="outlined"></v-select>
8181
</v-col>
8282
<v-col cols="12">
83-
<v-text-field
84-
v-model="formData.size"
85-
label="Size (TB)"
86-
hint="Enter the size of the storage in Terrabytes"
87-
persistent-hint
88-
type="number"
89-
:min="1"
90-
:max="100"
91-
:step="1"
92-
required
93-
suffix="TB"
94-
variant="outlined"
95-
></v-text-field>
83+
<v-number-input v-model="formData.size" label="Size (TB)" type="number" variant="outlined" :min="0" :step="0.1" :precision="1"></v-number-input>
9684
</v-col>
9785
</v-form>
9886
</v-row>

0 commit comments

Comments
 (0)