0.1.8 • Published 2 months ago

conflict-resolution v0.1.8

Weekly downloads
-
License
-
Repository
-
Last release
2 months ago

ty-contrast-text

Attributes

参数说明类型可选值默认值
file文件基本信息Object--
file-content文件内容Object--
is-resolve冲突是否已解决Boolean-false
is-contrast文件对比模式Boolean-false
save-button是否展示保存按钮Boolean-true
resolve-button是否展示标记为已解决按钮Boolean-true

file

参数说明类型可选值默认值
name文件名String--
oldSize本地文件大小Number--
newSize远程文件大小Number--

file-content

参数说明类型可选值默认值
oldContent本地文件内容String--
newContent远程文件内容String--
mineContent远程文件内容,没有值时传nullString--

Events

事件名称说明回调参数
success解决冲突,文本文件点击标记为已解决触发,一个参数:当前文本
save-file-handle保存一个参数:当前文本
change文本发生改变时触发一个参数:当前文本
un-text-file-success解决冲突,非文本文件选择左右后触发一个参数:选择的远程或者本地的标识 remote/local