UNPKG

antd

Version:

An enterprise-class UI design language and React components implementation

49 lines (48 loc) 1.45 kB
import type { CSSProperties } from 'react'; import type { FullToken, GlobalToken } from '../../theme/internal'; export interface ComponentToken { /** * @desc 选择器宽度 * @descEN Width of Cascader */ controlWidth: number | string; /** * @desc 选项宽度 * @descEN Width of item */ controlItemWidth: number | string; /** * @desc 下拉菜单高度 * @descEN Height of dropdown */ dropdownHeight: number | string; /** * @desc 选项选中时背景色 * @descEN Background color of selected item */ optionSelectedBg: string; /** * @desc 选项选中时文本颜色 * @descEN Text color when option is selected */ optionSelectedColor: string; /** * @desc 选项选中时字重 * @descEN Font weight of selected item */ optionSelectedFontWeight: CSSProperties['fontWeight']; /** * @desc 选项内间距 * @descEN Padding of menu item */ optionPadding: CSSProperties['padding']; /** * @desc 选项菜单(单列)内间距 * @descEN Padding of menu item (single column) */ menuPadding: CSSProperties['padding']; } export type CascaderToken = FullToken<'Cascader'>; export declare const prepareComponentToken: (token: GlobalToken) => ComponentToken; declare const _default: (prefixCls: string, rootCls?: string) => readonly [string, string]; export default _default;