INIT: initial commit
Added some initial files, components, functionality
This commit is contained in:
commit
72aaf5174d
19 changed files with 9962 additions and 0 deletions
26
app/components/Pp/FormInput.vue
Normal file
26
app/components/Pp/FormInput.vue
Normal file
|
@ -0,0 +1,26 @@
|
|||
<template>
|
||||
<div class="Input">
|
||||
<input :type="type" :id="makeId()" placeholder=" " min="1" :max="max" />
|
||||
<label :for="makeId()">{{ label }}</label>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
type Props = {
|
||||
type ?: 'text' | 'number'
|
||||
max ?: number
|
||||
label : string
|
||||
id : string
|
||||
uid : number
|
||||
}
|
||||
|
||||
const {
|
||||
type = 'text',
|
||||
max = 10,
|
||||
label,
|
||||
id,
|
||||
uid,
|
||||
} = defineProps<Props>()
|
||||
|
||||
const makeId = () => `${id}_${uid}`
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue