feat(ui): make modal closed by default

environments/review-docs-feat-z0hkbz/deployments/20103
upsiflu 2024-12-12 10:41:43 +01:00
rodzic 48a86d1515
commit aa2016ce59
2 zmienionych plików z 6 dodań i 6 usunięć

Wyświetl plik

@ -2,7 +2,7 @@
import Button from '~/components/ui/Button.vue' import Button from '~/components/ui/Button.vue'
const { title } = defineProps<{ title:string }>() const { title } = defineProps<{ title:string }>()
const isOpen = defineModel<boolean>({ required: true }) const isOpen = defineModel<boolean>({ default:false })
// TODO: // TODO:
// - [ ] Trap focus while open // - [ ] Trap focus while open

Wyświetl plik

@ -28,7 +28,7 @@ const isOpen6 = ref(false)
| Prop | Data type | Required? | Default | Description | | Prop | Data type | Required? | Default | Description |
| --------- | ----------------- | --------- | ------- | ---------------------------------- | | --------- | ----------------- | --------- | ------- | ---------------------------------- |
| `title` | `string` | Yes | | The modal title | | `title` | `string` | Yes | | The modal title |
| `v-model` | `true` \| `false` | Yes | | Whether the modal is isOpen or not | | `v-model` | `true` \| `false` | No | | Whether the modal is isOpen or not |
<Layout flex> <Layout flex>