build
This commit is contained in:
parent
fd5c49071c
commit
5bfde6ee66
7 changed files with 45 additions and 14 deletions
33
README.md
33
README.md
|
|
@ -43,6 +43,10 @@ src/
|
|||
EliBadge.vue
|
||||
index.ts
|
||||
README.md
|
||||
data_hora/
|
||||
EliDataHora.vue
|
||||
index.ts
|
||||
README.md
|
||||
tipos/
|
||||
botao.ts
|
||||
campo.ts
|
||||
|
|
@ -124,7 +128,7 @@ createApp(App)
|
|||
### 2) Importação direta de componentes
|
||||
|
||||
```ts
|
||||
import { EliBotao, EliInput, EliBadge } from "eli-vue";
|
||||
import { EliBotao, EliInput, EliBadge, EliDataHora } from "eli-vue";
|
||||
```
|
||||
|
||||
## Exemplos rápidos de uso
|
||||
|
|
@ -166,6 +170,33 @@ export default defineComponent({
|
|||
</template>
|
||||
```
|
||||
|
||||
### EliDataHora
|
||||
|
||||
> Entrada/saída sempre em **ISO 8601**.
|
||||
> - Aceita UTC absoluto (`Z`) ou com offset.
|
||||
> - Emite ISO com **offset local**.
|
||||
|
||||
```vue
|
||||
<template>
|
||||
<EliDataHora v-model="agendamento" rotulo="Agendamento" />
|
||||
<EliDataHora v-model="nascimento" modo="data" rotulo="Nascimento" />
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent, ref } from "vue";
|
||||
import { EliDataHora } from "eli-vue";
|
||||
|
||||
export default defineComponent({
|
||||
components: { EliDataHora },
|
||||
setup() {
|
||||
const agendamento = ref<string | null>("2026-01-09T16:15:00Z");
|
||||
const nascimento = ref<string | null>("2026-01-09T00:00:00-03:00");
|
||||
return { agendamento, nascimento };
|
||||
},
|
||||
});
|
||||
</script>
|
||||
```
|
||||
|
||||
## Troubleshooting (problemas comuns)
|
||||
|
||||
### 1) "Failed to resolve component" / componente não registrado
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue