spiritsaint/code-difference

A Laravel Nova 字段,用于查看两个输入之间的差异。

dev-master 2022-04-08 01:53 UTC

This package is not auto-updated.

Last update: 2024-09-20 17:12:56 UTC


README

CodeDifference 字段

以下字段可用于查看两个输入之间的差异。

用法

CodeDifference::make(__("Differences"), function() {
    return ["past" => $this->past, "next" => $this->next];
})->onlyOnDetail()

依赖项

  • Vue 代码差异(npm上的vue-code-diff)

感谢!

许可证

此代码是公开的,采用MIT许可证。