11import React from 'react' ;
2+ import type { ImageProps as RcImageProps } from '@rc-component/image' ;
23import { Flex , Image , theme } from 'antd' ;
34import type { ImageProps } from 'antd' ;
4- import type { ImageProps as RcImageProps } from '@rc-component/image' ;
55import { createStaticStyles } from 'antd-style' ;
66import { clsx } from 'clsx' ;
77
@@ -26,6 +26,7 @@ const locales = {
2626 'popup.body' : '预览内容元素,设置flex布局、居中对齐和指针事件样式' ,
2727 'popup.footer' : '预览页脚元素,设置绝对定位、居中布局和底部操作区域样式' ,
2828 'popup.actions' : '预览操作组元素,设置flex布局、背景色、圆角和操作按钮样式' ,
29+ 'popup.close' : '预览关闭按钮元素,设置按钮的基础样式' ,
2930 } ,
3031 en : {
3132 root : 'Root element, sets relative positioning and inline-block layout styles' ,
@@ -42,6 +43,7 @@ const locales = {
4243 'Preview footer element, sets absolute positioning, center layout and bottom operation area styles' ,
4344 'popup.actions' :
4445 'Preview actions group element, sets flex layout, background color, border radius and action button styles' ,
46+ 'popup.close' : 'Preview close button element, sets basic button styles' ,
4547 } ,
4648} ;
4749interface ImagePropsBlock extends Omit < ImageProps , 'classNames' > {
@@ -93,6 +95,7 @@ const App: React.FC = () => {
9395 { name : 'popup.body' , desc : locale [ 'popup.body' ] } ,
9496 { name : 'popup.footer' , desc : locale [ 'popup.footer' ] } ,
9597 { name : 'popup.actions' , desc : locale [ 'popup.actions' ] } ,
98+ { name : 'popup.close' , desc : locale [ 'popup.close' ] , version : '6.4.0' } ,
9699 ] }
97100 >
98101 < Block />
0 commit comments