mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-25 17:26:15 -04:00
refactor(ui): replaced some n-input with c-input-text
This commit is contained in:
parent
b3b6b7c46b
commit
f7fc779e63
10 changed files with 189 additions and 226 deletions
|
@ -1,25 +1,26 @@
|
|||
<template>
|
||||
<div>
|
||||
<n-form-item :show-label="false" v-bind="validation.attrs as any">
|
||||
<n-input-group>
|
||||
<n-input
|
||||
v-model:value="inputDate"
|
||||
autofocus
|
||||
:on-input="onDateInputChanged"
|
||||
placeholder="Put you date string here..."
|
||||
clearable
|
||||
:input-props="{ 'data-test-id': 'date-time-converter-input' } as any"
|
||||
/>
|
||||
<n-input-group>
|
||||
<c-input-text
|
||||
v-model:value="inputDate"
|
||||
autofocus
|
||||
placeholder="Put you date string here..."
|
||||
clearable
|
||||
test-id="date-time-converter-input"
|
||||
:validation="validation"
|
||||
@update:value="onDateInputChanged"
|
||||
/>
|
||||
|
||||
<n-select
|
||||
v-model:value="formatIndex"
|
||||
style="flex: 0 0 170px"
|
||||
:options="formats.map(({ name }, i) => ({ label: name, value: i }))"
|
||||
data-test-id="date-time-converter-format-select"
|
||||
/>
|
||||
</n-input-group>
|
||||
|
||||
<n-divider />
|
||||
|
||||
<n-select
|
||||
v-model:value="formatIndex"
|
||||
style="flex: 0 0 170px"
|
||||
:options="formats.map(({ name }, i) => ({ label: name, value: i }))"
|
||||
data-test-id="date-time-converter-format-select"
|
||||
/>
|
||||
</n-input-group>
|
||||
</n-form-item>
|
||||
<n-divider style="margin-top: 0" />
|
||||
<input-copyable
|
||||
v-for="{ name, fromDate } in formats"
|
||||
:key="name"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue