hoiheart / vue-diff

VueJS diff viewer plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can it support on-demand import in single page

ZhangTomLiang opened this issue · comments

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

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>