UNPKG
text-compare-vue3
Version:
latest (0.0.2)
0.0.2
0.0.1
A powerful text comparison plugin for Vue.js with character-level diff support
text-compare-vue3
/
src
/
index.js
12 lines
(10 loc)
•
260 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
import
TextDiff
from
'./components/TextDiff.vue'
import
{ getDiffParts }
from
'./utils/diff'
// 导出组件和工具函数
export
{
TextDiff
, getDiffParts }
// 导出 Vue 插件
export
default
{
install
(
app
) { app.
component
(
'TextDiff'
,
TextDiff
) } }