44 lines
1.7 KiB
TypeScript
44 lines
1.7 KiB
TypeScript
|
import type { CSSObject } from '@ant-design/cssinjs';
|
||
|
import type { FullToken, GenerateStyle, GetDefaultToken } from '../../theme/internal';
|
||
|
export interface ComponentToken {
|
||
|
/**
|
||
|
* @desc 预览浮层 z-index
|
||
|
* @descEN z-index of preview popup
|
||
|
*/
|
||
|
zIndexPopup: number;
|
||
|
/**
|
||
|
* @desc 预览操作图标大小
|
||
|
* @descEN Size of preview operation icon
|
||
|
*/
|
||
|
previewOperationSize: number;
|
||
|
/**
|
||
|
* @desc 预览操作图标颜色
|
||
|
* @descEN Color of preview operation icon
|
||
|
*/
|
||
|
previewOperationColor: string;
|
||
|
/**
|
||
|
* @desc 预览操作图标悬浮颜色
|
||
|
* @descEN Color of hovered preview operation icon
|
||
|
*/
|
||
|
previewOperationHoverColor: string;
|
||
|
/**
|
||
|
* @desc 预览操作图标禁用颜色
|
||
|
* @descEN Disabled color of preview operation icon
|
||
|
*/
|
||
|
previewOperationColorDisabled: string;
|
||
|
}
|
||
|
export interface ImageToken extends FullToken<'Image'> {
|
||
|
previewCls: string;
|
||
|
modalMaskBg: string;
|
||
|
imagePreviewSwitchSize: number;
|
||
|
}
|
||
|
export type PositionType = 'static' | 'relative' | 'fixed' | 'absolute' | 'sticky' | undefined;
|
||
|
export declare const genBoxStyle: (position?: PositionType) => CSSObject;
|
||
|
export declare const genImageMaskStyle: (token: ImageToken) => CSSObject;
|
||
|
export declare const genPreviewOperationsStyle: (token: ImageToken) => CSSObject;
|
||
|
export declare const genPreviewSwitchStyle: (token: ImageToken) => CSSObject;
|
||
|
export declare const genImagePreviewStyle: GenerateStyle<ImageToken>;
|
||
|
export declare const prepareComponentToken: GetDefaultToken<'Image'>;
|
||
|
declare const _default: (prefixCls: string, rootCls?: string) => readonly [(node: import("react").ReactElement) => import("react").ReactElement, string, string];
|
||
|
export default _default;
|