refactor: link.vue to use composition api #23
1 changed files with 11 additions and 26 deletions
|
@ -19,33 +19,18 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts" setup>
|
||||||
import { defineComponent } from 'vue';
|
import { } from 'vue';
|
||||||
|
|
||||||
export default defineComponent({
|
type Behavior = 'window' | 'browser' | 'modalWindow';
|
||||||
props: {
|
|
||||||
to: {
|
defineProps<{
|
||||||
type: String,
|
to: string;
|
||||||
required: true
|
active?: boolean;
|
||||||
},
|
external?: boolean;
|
||||||
active: {
|
behavior?: Behavior;
|
||||||
type: Boolean,
|
inline?: boolean;
|
||||||
required: false
|
}>();
|
||||||
},
|
|
||||||
external: {
|
|
||||||
type: Boolean,
|
|
||||||
required: false
|
|
||||||
},
|
|
||||||
behavior: {
|
|
||||||
type: String,
|
|
||||||
required: false,
|
|
||||||
},
|
|
||||||
inline: {
|
|
||||||
type: Boolean,
|
|
||||||
required: false
|
|
||||||
},
|
|
||||||
},
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|
Loading…
Reference in a new issue