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

vue3 设置的背景颜色填充不生效 #817

Open
linuxkai opened this issue May 8, 2024 · 7 comments
Open

vue3 设置的背景颜色填充不生效 #817

linuxkai opened this issue May 8, 2024 · 7 comments

Comments

@linuxkai
Copy link

linuxkai commented May 8, 2024

本地环境:
"Chrome": 124.0.6367.92
"vue": "^3.4.21",
"vue-cropper": "^1.1.2"

本地测试时,发现fillColor 参数一直不生效,背景一直是黑色,后来参数#301,将导出图片设置成png, 背景为透明了,fillColor还是没生效,测试线上vue3示例也是同样问题,但vue2的示例在jpg格式下,背景也会生效

@xyxiao001
Copy link
Owner

https://github.xyxiao.cn/vue-cropper/docs/vue3.html 看看这个文件,是可以的

@linuxkai
Copy link
Author

linuxkai commented May 8, 2024

抱歉,vue3在线示例,由于自己没修改fillcolor,看着默认是黑色就没动,

@xyxiao001
Copy link
Owner

image

@linuxkai
Copy link
Author

linuxkai commented May 8, 2024

image
image
image
但自己的代码还是不生效,实在找不到问题

@linuxkai
Copy link
Author

折腾了好久,发现将full 参数设置成true 后, 背景填充失效了。

@xyxiao001
Copy link
Owner

好滴,我去测试看看,可能是full参数冲突了

@xyxiao001
Copy link
Owner

已经在1.1.3版本修复

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