amis-rpc-design/node_modules/antd/lib/form/style/index.d.ts

58 lines
1.6 KiB
TypeScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
import type { CSSProperties } from 'react';
import type { FullToken } from '../../theme/internal';
import type { GenStyleFn } from '../../theme/util/genComponentStyleHook';
export interface ComponentToken {
/**
* @desc
* @descEN Required mark color
*/
labelRequiredMarkColor: string;
/**
* @desc
* @descEN Label color
*/
labelColor: string;
/**
* @desc
* @descEN Label font size
*/
labelFontSize: number;
/**
* @desc
* @descEN Label height
*/
labelHeight: number;
/**
* @desc
* @descEN Label colon margin-inline-start
*/
labelColonMarginInlineStart: number;
/**
* @desc
* @descEN Label colon margin-inline-end
*/
labelColonMarginInlineEnd: number;
/**
* @desc
* @descEN Form item margin bottom
*/
itemMarginBottom: number;
/**
* @desc
* @descEN Vertical layout label padding
*/
verticalLabelPadding: CSSProperties['padding'];
/**
* @desc
* @descEN Vertical layout label margin
*/
verticalLabelMargin: CSSProperties['margin'];
}
export interface FormToken extends FullToken<'Form'> {
formItemCls: string;
rootPrefixCls: string;
}
export declare const prepareToken: (token: Parameters<GenStyleFn<'Form'>>[0], rootPrefixCls: string) => FormToken;
declare const _default: (prefixCls: string) => import("../../theme/interface").UseComponentStyleResult;
export default _default;