Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Can it support on-demand import in single page #41

Open
ZhangTomLiang opened this issue Jan 29, 2023 · 1 comment
Open

Can it support on-demand import in single page #41

ZhangTomLiang opened this issue Jan 29, 2023 · 1 comment

Comments

@ZhangTomLiang
Copy link

I saw the document that mentioned global import, it would be better if you can support that. thank you.

@alxpereira
Copy link

Just went into using this lib, for thos who are asking, you can bypass the globall App.use import by just importing the Diff component in your targeted file

<template>
     <Diff theme="light" language="ts" ... />
</template>

<script lang="ts" setup>
    import { Diff } from 'vue-diff';
    import 'vue-diff/dist/index.css';
</script>

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants