client: add default props for form link

This commit is contained in:
Johann150 2022-10-04 21:13:22 +02:00
parent 36a0f0c480
commit a79506d895
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -20,16 +20,20 @@
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
type Behavior = 'window' | 'browser' | 'modalWindow'; type Behavior = 'window' | 'browser' | 'modalWindow';
defineProps<{ withDefaults(defineProps<{
to: string; to: string;
active?: boolean; active?: boolean;
external?: boolean; external?: boolean;
behavior?: Behavior; behavior?: null | Behavior;
inline?: boolean; inline?: boolean;
}>(); }>(), {
active: false,
external: false,
behavior: null,
inline: false,
});
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>