Comments (7)
Please try version 2.4.0
, now antd-img-crop
do not import antd/lib/style/index.css
any more.
But the Modal of antd-img-crop
uses the default CSS of antd
, if you want to override them, you must add the custom CSS.
There is a parent class you can use:
.antd-img-crop-modal {
/* Custom styles */
}
from antd-img-crop.
Hi,
Can you provide a reproducible demo?
Need some more detailed specifics to see what happend, thanks.
from antd-img-crop.
Hi,
Unfortunately, I don't have a 'codesandbox' demo for you to recreate the issue as it is specific to my environment. Just wondering that what CSS you are using and is there any way to disable it?
Thanks.
from antd-img-crop.
Sorry, I can't fix a 'problem' without 'seen' it.
from antd-img-crop.
Hello,
I am also having this problem. Here is a code sandbox to reproduce the problem.
Thank you.
from antd-img-crop.
Hi, because antd-img-crop
is rely on antd
. styles changed because antd-img-crop
imported antd/lib/style/index.css
, the basic styles of antd
.
Since you use antd-img-crop
, you must use antd
, you must use Upload
component of antd
, and this file is bound to imported.
So that's not a problem.
from antd-img-crop.
Hi,
I am already using antd
and have antd/lib/style/index.css
imported. I am using custom css to override that css. When I use antd-img-crop
, antd/lib/style/index.css
gets imported an additional time and overwrites my css.
Thanks.
from antd-img-crop.
Related Issues (20)
- ImageCrop not working with beforeUpload={() => false} HOT 1
- 选择一张背景背景透明的图片,最后背景变成了白色 HOT 1
- Image Upload Persists Despite Cancel HOT 1
- beforeCrop 返会false后,beforeUpload不再执行 HOT 1
- 为啥beforeCrop这个函数return file在不同环境下表现不一致
- 建议zoomSlider、rotationSlider、aspectSlider分别都添加一个步进参数,每点击一下,可步进多少 HOT 1
- 使用antd": "4.22.4", 剪裁弹窗点击取消后仍然会触发onChange事件进行上传操作 HOT 4
- Is there a way to move the crop square over the image/canvas. Rather than zooming into the image and then moving it HOT 1
- How do i send a resized image to the cropper ? HOT 1
- ShadowDom wrapper HOT 2
- beforeUpload 返回了false,但依然发起上传 HOT 9
- 开发环境下,beforeCrop返回false会停止上传,生产环境下,返回false会继续执行上传
- next.js 中 modal 取消还是会发起上传请求,onModalCancel resolve 并没有效果 HOT 1
- ConfigProvider not work HOT 2
- beforeCrop property problem HOT 5
- How can crop multiple images? HOT 1
- When uploading a PNG image, its size almost doubles. HOT 1
- Aspect slider's min and max values
- ImgCrop 嵌套 Antd Dragger组件时,ImgCrop组件的onModalOK事件不会触发 HOT 2
- .heic format HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from antd-img-crop.