UNPKG

text-compare-vue3

Version:

A powerful text comparison plugin for Vue.js with character-level diff support

12 lines (10 loc) 260 B
import TextDiff from './components/TextDiff.vue' import { getDiffParts } from './utils/diff' // 导出组件和工具函数 export { TextDiff, getDiffParts } // 导出 Vue 插件 export default { install(app) { app.component('TextDiff', TextDiff) } }