refactor: link.vue to use composition api
Some checks failed
ci/woodpecker/pr/lint-backend Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/lint-client Pipeline failed
ci/woodpecker/pr/test Pipeline failed

This commit is contained in:
Norm 2022-07-22 14:23:39 -04:00
parent 150f373ebf
commit 98802d61b6
Signed by: norm
GPG key ID: 7123E30E441E80DE

View file

@ -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>