mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-09 16:52:17 +01:00
25 lines
778 B
Vue
25 lines
778 B
Vue
<script setup lang="ts">
|
|
import EstimatedTimeInput from '@/packages/ui/src/Input/EstimatedTimeInput.vue';
|
|
import { ClockIcon } from '@heroicons/vue/20/solid';
|
|
import { Field, FieldDescription, FieldLabel } from './field';
|
|
|
|
const model = defineModel<number | null>();
|
|
const emit = defineEmits(['submit']);
|
|
</script>
|
|
|
|
<template>
|
|
<Field>
|
|
<FieldLabel for="time_estimated" :icon="ClockIcon">Time Estimated</FieldLabel>
|
|
<EstimatedTimeInput
|
|
id="time_estimated"
|
|
v-model="model"
|
|
@submit="emit('submit')"></EstimatedTimeInput>
|
|
<FieldDescription>
|
|
You can type natural language like
|
|
<span class="font-semibold">2h 30m</span>
|
|
</FieldDescription>
|
|
</Field>
|
|
</template>
|
|
|
|
<style scoped></style>
|