forked from FoundKeyGang/FoundKey
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>
|
</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>
|
||||||
|
|
Loading…
Reference in a new issue