client: add default props for form link
This commit is contained in:
parent
36a0f0c480
commit
a79506d895
1 changed files with 8 additions and 4 deletions
|
@ -20,16 +20,20 @@
|
|||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
|
||||
type Behavior = 'window' | 'browser' | 'modalWindow';
|
||||
|
||||
defineProps<{
|
||||
withDefaults(defineProps<{
|
||||
to: string;
|
||||
active?: boolean;
|
||||
external?: boolean;
|
||||
behavior?: Behavior;
|
||||
behavior?: null | Behavior;
|
||||
inline?: boolean;
|
||||
}>();
|
||||
}>(), {
|
||||
active: false,
|
||||
external: false,
|
||||
behavior: null,
|
||||
inline: false,
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
|
Loading…
Reference in a new issue