create qr code progress
This commit is contained in:
@@ -8,14 +8,20 @@
|
||||
<InputText id="name" v-model="name" class="w-full" placeholder="Введите название" />
|
||||
<p v-if="!name" class="text-red-500 text-sm mt-1">Название обязательно.</p>
|
||||
|
||||
<Button type="submit" :label="buttonLabel" class="p-button-md mt-4 mb-4" :disabled="!name" />
|
||||
<Button
|
||||
type="submit"
|
||||
:label="buttonLabel"
|
||||
class="p-button-md mt-4 mb-4"
|
||||
:loading="isPending"
|
||||
:disabled="!name || isPending"
|
||||
/>
|
||||
</form>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { type QRCodeDocument } from '@hereconnect/types'
|
||||
defineProps<{ buttonLabel: string }>()
|
||||
defineProps<{ buttonLabel: string; isPending: boolean }>()
|
||||
const name = defineModel<QRCodeDocument['name']>('name')
|
||||
const emit = defineEmits(['nextStep'])
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user