-
Notifications
You must be signed in to change notification settings - Fork 138
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
[comp:image] Optimize and reconstruct image components #698
Labels
Comments
Translation of this issue:[Comp: Image] Optimize and Reconstruct Image Components
What proBLEES THIS Feature SOLVE?Refactored to Tsx, Optimized Supplementary Attributes What does The proposed API Look Like?APIixImageImageProps
ixImageviewerImageViewerProps
ImageViewerslots
|
|
typistZxd
added a commit
to typistZxd/idux
that referenced
this issue
Jan 6, 2022
13 tasks
typistZxd
added a commit
to typistZxd/idux
that referenced
this issue
Jan 7, 2022
typistZxd
added a commit
to typistZxd/idux
that referenced
this issue
Jan 8, 2022
typistZxd
added a commit
to typistZxd/idux
that referenced
this issue
Jan 10, 2022
typistZxd
added a commit
to typistZxd/idux
that referenced
this issue
Jan 10, 2022
typistZxd
added a commit
to typistZxd/idux
that referenced
this issue
Jan 11, 2022
typistZxd
added a commit
to typistZxd/idux
that referenced
this issue
Jan 13, 2022
danranVm
pushed a commit
that referenced
this issue
Jan 13, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What problem does this feature solve?
Refactored to tsx, optimized supplementary attributes
What does the proposed API look like?
API
IxImage
图片组件
ImageProps
src
string
preview
boolean
true
onStatusChange
(status: loading|loaded|failed) => void
ImageSlots
placeholder
fallback
IxImageViewer
图片预览组件
ImageViewerProps
srcList
string[]
[]
activeIndex
number
infinite
boolean
true
closeByClickModal
boolean
true
onOpen
() => void
onSwitch
index
为下一张图片的索引(index: number) => void
onClose
() => void
ImageViewerSlots
default
The text was updated successfully, but these errors were encountered: