Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问一下右上角这个差异信息(多少添加,多少删除)是怎么展示出来的? #159

Open
EddieLauYin opened this issue Dec 25, 2024 · 6 comments

Comments

@EddieLauYin
Copy link

          实测最新版(1.13.1)可以兼容 vue2.6 

a050eeafc21b55a239321f653c04a20e

Originally posted by @Shimada666 in #153 (comment)

@EddieLauYin
Copy link
Author

EddieLauYin commented Dec 25, 2024

image
请问一下大佬,截图上右上角这个差异信息是怎么展示出来的?
我使用1.13.1版本,vue2.7 右上角没有展示这个信息
image
代码如下
<code-diff output-format="side-by-side" :old-string="JSON.stringify(JSON.parse(oldString), null, '\t')" :new-string="JSON.stringify(JSON.parse(newString), null, '\t')" context="2" />

@Shimada666

@EddieLauYin EddieLauYin changed the title 实测最新版(1.13.1)可以兼容 vue2.6 请问一下右上角这个差异信息(点对添加,多少删除)是怎么展示出来的? Dec 25, 2024
@Shimada666
Copy link
Owner

你是否传入了 prop:hideStat=True?

@EddieLauYin EddieLauYin changed the title 请问一下右上角这个差异信息(点对添加,多少删除)是怎么展示出来的? 请问一下右上角这个差异信息(多少添加,多少删除)是怎么展示出来的? Dec 25, 2024
@EddieLauYin
Copy link
Author

没有传这个呢,所以有点奇怪

@Shimada666
Copy link
Owner

没有传这个呢,所以有点奇怪

很奇怪,我没复现出的你的错误。你如果起一个干净的 vue2.7 项目,会有这个问题吗?

@EddieLauYin
Copy link
Author

EddieLauYin commented Dec 25, 2024

重新起一个干净的 vue2.7 项目,没有这个问题
我重新检查了原来工作的项目,发现Vue版本是2.6.10 的,才有这个问题
image

@Shimada666
Copy link
Owner

挺奇怪的,vue2.6 也是我们支持的,我在 vue2.6 上面试了下,没发现这个情况

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants