add: design, icons, calculation
Implemented new design for PriceCards, added some icons for visuals, added calculation per price card
This commit is contained in:
parent
878b7e06e8
commit
aa9c936f80
11 changed files with 180 additions and 26 deletions
|
@ -1,6 +1,16 @@
|
|||
<template>
|
||||
<div class="Input">
|
||||
<input :type="type" :id="makeId()" placeholder=" " :min="min" :max="max" />
|
||||
<div class="Input flex-col">
|
||||
<input
|
||||
v-model="text"
|
||||
:type="type"
|
||||
:id="makeId()"
|
||||
:step="step"
|
||||
:min="min"
|
||||
:max="max"
|
||||
:required="required"
|
||||
placeholder=" "
|
||||
@blur="emit('blur')"
|
||||
/>
|
||||
<label :for="makeId()">{{ label }}</label>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -10,6 +20,8 @@ type Props = {
|
|||
type ?: 'text' | 'number'
|
||||
max ?: number
|
||||
min ?: number
|
||||
step ?: number
|
||||
required ?: boolean
|
||||
label : string
|
||||
id : string
|
||||
uid : number
|
||||
|
@ -17,6 +29,8 @@ type Props = {
|
|||
|
||||
const {
|
||||
type = 'text',
|
||||
required = false,
|
||||
step = 0.01,
|
||||
min = 1,
|
||||
max,
|
||||
label,
|
||||
|
@ -24,5 +38,9 @@ const {
|
|||
uid,
|
||||
} = defineProps<Props>()
|
||||
|
||||
const emit = defineEmits(['blur'])
|
||||
|
||||
const text = defineModel()
|
||||
|
||||
const makeId = () => `${id}_${uid}`
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue