///
import { LanType, Direction } from './locale/Props';
import { SpinNameType } from '../spin/spin.type';
import type { SemanticClassNames, SemanticStyles } from '../common/use-semantic';
import type { PopoverSemanticKey } from '../popover/popover.type';
import type { TooltipSemanticKey } from '../tooltip/tooltip.type';
import type { SpinSemanticKey } from '../spin/spin.type';
import type { AlertSemanticKey } from '../alert/alert.type';
import type { ModalSemanticKey } from '../modal/modal.type';
import type { ProgressSemanticKey } from '../progress/progress.type';
import type { MessageSemanticKey } from '../message/message.type';
import type { ButtonSemanticKey } from '../button/button.type';
import type { LinkSemanticKey } from '../link/link.type';
import type { DividerSemanticKey } from '../divider/divider.type';
import type { GapSemanticKey } from '../gap/gap.type';
import type { GridSemanticKey } from '../grid/grid.type';
import type { StepsSemanticKey } from '../steps/steps.type';
import type { MenuSemanticKey } from '../menu/menu.type';
import type { DropdownSemanticKey } from '../dropdown/dropdown.type';
import type { BreadcrumbSemanticKey } from '../breadcrumb/breadcrumb.type';
import type { PaginationSemanticKey } from '../pagination/pagination.type';
import type { BadgeSemanticKey } from '../badge/badge.type';
import type { CardSemanticKey } from '../card/card.type';
import type { CarouselSemanticKey } from '../carousel/carousel.type';
import type { CollapseSemanticKey } from '../collapse/collapse.type';
import type { DescriptionsSemanticKey } from '../descriptions/descriptions.type';
import type { EmptySemanticKey } from '../empty/empty.type';
import type { ImageSemanticKey } from '../image/image.type';
import type { ListSemanticKey } from '../list/list.type';
import type { SkeletonSemanticKey } from '../skeleton/skeleton.type';
import type { TabsSemanticKey } from '../tabs/tabs.type';
import type { TagSemanticKey } from '../tag/tag.type';
import type { TreeSemanticKey } from '../tree/tree.type';
import type { TableSemanticKey } from '../table/table.type';
import type { CascaderSemanticKey } from '../cascader/cascader.type';
import type { CheckboxSemanticKey } from '../checkbox/checkbox.type';
import type { RadioSemanticKey } from '../radio/radio.type';
import type { RateSemanticKey } from '../rate/rate.type';
import type { SliderSemanticKey } from '../slider/slider.type';
import type { SwitchSemanticKey } from '../switch/switch.type';
import type { TextareaSemanticKey } from '../textarea/textarea.type';
import type { TransferSemanticKey } from '../transfer/transfer.type';
import type { TreeSelectSemanticKey } from '../tree-select/tree-select.type';
import type { UploadSemanticKey } from '../upload/upload.type';
import type { SelectSemanticKey } from '../select/select.type';
import type { DatePickerSemanticKey } from '../date-picker/date-picker.type';
import type { FormSemanticKey } from '../form/form.type';
import type { FormItemSemanticKey } from '../form/form-item.type';
import type { InputSemanticKey } from '../input/input.type';
import type { AvatarGroupSemanticKey } from '../avatar/avatar.type';
export type SpinConfig = SpinNameType | {
name: SpinNameType;
color?: string;
tip?: React.ReactNode;
mode?: 'vertical' | 'horizontal';
size?: number;
/**
* @en Global Semantic DOM classNames for Spin (applies to all Spin instances).
* @cn Spin 全局 Semantic DOM 类名(作用于所有 Spin 实例)。
* @version 3.10.0
*/
classNames?: SemanticClassNames;
/**
* @en Global Semantic DOM styles for Spin (applies to all Spin instances).
* @cn Spin 全局 Semantic DOM 样式(作用于所有 Spin 实例)。
* @version 3.10.0
*/
styles?: SemanticStyles;
};
type TooltipConfig = {
persistent?: boolean;
/**
* @en Global Semantic DOM classNames for Tooltip (applies to all Tooltip instances).
* Lower priority than component-level `classNames` prop.
* @cn Tooltip 全局 Semantic DOM 类名(作用于所有 Tooltip 实例)。
* 优先级低于组件 prop 上的 `classNames`。
* @version 3.10.0
*/
classNames?: SemanticClassNames;
/**
* @en Global Semantic DOM styles for Tooltip (applies to all Tooltip instances).
* Lower priority than component-level `styles` prop.
* @cn Tooltip 全局 Semantic DOM 样式(作用于所有 Tooltip 实例)。
* 优先级低于组件 prop 上的 `styles`。
* @version 3.10.0
*/
styles?: SemanticStyles;
};
/**
* @en Global configuration for Modal component
* @cn Modal组件的全局配置
* @version 3.9.10
*/
export type ModalConfig = {
/**
* @en Global default mask setting for Modal component. false to hide mask, { blur: true } to show blurred mask
* @cn Modal组件的全局默认遮罩设置。false 隐藏遮罩,{ blur: true } 显示模糊遮罩
*/
mask?: boolean | {
blur?: boolean;
};
/**
* @en Global Semantic DOM classNames for Modal.
* @cn Modal 全局 Semantic DOM 类名。
* @version 3.10.0
*/
classNames?: SemanticClassNames;
/**
* @en Global Semantic DOM styles for Modal.
* @cn Modal 全局 Semantic DOM 样式。
* @version 3.10.0
*/
styles?: SemanticStyles;
};
/**
* @en Global configuration for Popover component
* @cn Popover组件的全局配置
* @version 3.9.9
*/
export type PopoverConfig = {
/**
* @en Global default animation setting for Popover component
* @cn Popover组件的全局默认动画设置
*/
animation?: boolean;
/**
* @en Global Semantic DOM classNames for Popover (applies to all Popover instances).
* Lower priority than component-level `classNames` prop.
* @cn Popover 全局 Semantic DOM 类名(作用于所有 Popover 实例)。
* 优先级低于组件 prop 上的 `classNames`。
* @version 3.10.0
*/
classNames?: SemanticClassNames;
/**
* @en Global Semantic DOM styles for Popover (applies to all Popover instances).
* Lower priority than component-level `styles` prop.
* @cn Popover 全局 Semantic DOM 样式(作用于所有 Popover 实例)。
* 优先级低于组件 prop 上的 `styles`。
* @version 3.10.0
*/
styles?: SemanticStyles;
};
/**
* @en Global configuration for Empty component
* @cn Empty组件的全局配置
* @version 3.8.0
*/
type EmptyConfig = {
/**
* @en Global default icon for Empty component
* @cn Empty组件的全局默认图标
*/
icon?: () => React.ReactNode;
/**
* @en Global default description for Empty component
* @cn Empty组件的全局默认描述
*/
description?: React.ReactNode | boolean;
/**
* @en Global Semantic DOM classNames for Empty (root / icon / description).
* @cn Empty 全局 Semantic DOM 类名(root / icon / description)。
* @version 3.10.0
*/
classNames?: SemanticClassNames;
/**
* @en Global Semantic DOM styles for Empty (root / icon / description).
* @cn Empty 全局 Semantic DOM 样式(root / icon / description)。
* @version 3.10.0
*/
styles?: SemanticStyles;
};
type AlertConfig = {
/**
* @en Global Semantic DOM classNames for Alert.
* @cn Alert 全局 Semantic DOM 类名。
* @version 3.10.0
*/
classNames?: SemanticClassNames;
/**
* @en Global Semantic DOM styles for Alert.
* @cn Alert 全局 Semantic DOM 样式。
* @version 3.10.0
*/
styles?: SemanticStyles;
};
type DrawerConfig = {
/**
* @en Global Semantic DOM classNames for Drawer.
* @cn Drawer 全局 Semantic DOM 类名。
* @version 3.10.0
*/
classNames?: SemanticClassNames;
/**
* @en Global Semantic DOM styles for Drawer.
* @cn Drawer 全局 Semantic DOM 样式。
* @version 3.10.0
*/
styles?: SemanticStyles;
};
type ProgressConfig = {
/**
* @en Global Semantic DOM classNames for Progress.
* @cn Progress 全局 Semantic DOM 类名。
* @version 3.10.0
*/
classNames?: SemanticClassNames;
/**
* @en Global Semantic DOM styles for Progress.
* @cn Progress 全局 Semantic DOM 样式。
* @version 3.10.0
*/
styles?: SemanticStyles;
};
type MessageConfig = {
/**
* @en Global Semantic DOM classNames for Message.
* @cn Message 全局 Semantic DOM 类名。
* @version 3.10.0
*/
classNames?: SemanticClassNames;
/**
* @en Global Semantic DOM styles for Message.
* @cn Message 全局 Semantic DOM 样式。
* @version 3.10.0
*/
styles?: SemanticStyles;
};
type ButtonConfig = {
/**
* @en Global Semantic DOM classNames for Button.
* @cn Button 全局 Semantic DOM 类名。
* @version 3.10.0
*/
classNames?: SemanticClassNames;
/**
* @en Global Semantic DOM styles for Button.
* @cn Button 全局 Semantic DOM 样式。
* @version 3.10.0
*/
styles?: SemanticStyles;
};
type LinkConfig = {
/**
* @en Global Semantic DOM classNames for Link.
* @cn Link 全局 Semantic DOM 类名。
* @version 3.10.0
*/
classNames?: SemanticClassNames;
/**
* @en Global Semantic DOM styles for Link.
* @cn Link 全局 Semantic DOM 样式。
* @version 3.10.0
*/
styles?: SemanticStyles;
};
type DividerConfig = {
/**
* @en Global Semantic DOM classNames for Divider.
* @cn Divider 全局 Semantic DOM 类名。
* @version 3.10.0
*/
classNames?: SemanticClassNames;
/**
* @en Global Semantic DOM styles for Divider.
* @cn Divider 全局 Semantic DOM 样式。
* @version 3.10.0
*/
styles?: SemanticStyles;
};
type GapConfig = {
/**
* @en Global Semantic DOM classNames for Gap.
* @cn Gap 全局 Semantic DOM 类名。
* @version 3.10.0
*/
classNames?: SemanticClassNames;
/**
* @en Global Semantic DOM styles for Gap.
* @cn Gap 全局 Semantic DOM 样式。
* @version 3.10.0
*/
styles?: SemanticStyles;
};
type GridConfig = {
/**
* @en Global Semantic DOM classNames for Grid.
* @cn Grid 全局 Semantic DOM 类名。
* @version 3.10.0
*/
classNames?: SemanticClassNames;
/**
* @en Global Semantic DOM styles for Grid.
* @cn Grid 全局 Semantic DOM 样式。
* @version 3.10.0
*/
styles?: SemanticStyles;
};
type StepsConfig = {
/**
* @en Global Semantic DOM classNames for Steps (root / step / tail / icon / title / description / content).
* @cn Steps 全局 Semantic DOM 类名(root / step / tail / icon / title / description / content)。
* @version 3.10.0
*/
classNames?: SemanticClassNames;
/**
* @en Global Semantic DOM styles for Steps (root / step / tail / icon / title / description / content).
* @cn Steps 全局 Semantic DOM 样式(root / step / tail / icon / title / description / content)。
* @version 3.10.0
*/
styles?: SemanticStyles;
};
type MenuConfig = {
/**
* @en Global Semantic DOM classNames for Menu (root / header / list / item / itemContent / title / icon / expand).
* @cn Menu 全局 Semantic DOM 类名(root / header / list / item / itemContent / title / icon / expand)。
* @version 3.10.0
*/
classNames?: SemanticClassNames;
/**
* @en Global Semantic DOM styles for Menu (root / header / list / item / itemContent / title / icon / expand).
* @cn Menu 全局 Semantic DOM 样式(root / header / list / item / itemContent / title / icon / expand)。
* @version 3.10.0
*/
styles?: SemanticStyles;
};
type DropdownConfig = {
/**
* @en Global Semantic DOM classNames for Dropdown (root / button / caret / list / item / group).
* @cn Dropdown 全局 Semantic DOM 类名(root / button / caret / list / item / group)。
* @version 3.10.0
*/
classNames?: SemanticClassNames;
/**
* @en Global Semantic DOM styles for Dropdown (root / button / caret / list / item / group).
* @cn Dropdown 全局 Semantic DOM 样式(root / button / caret / list / item / group)。
* @version 3.10.0
*/
styles?: SemanticStyles;
};
type BreadcrumbConfig = {
/**
* @en Global Semantic DOM classNames for Breadcrumb (root / item / separator / content / dropdown / dropdownItem).
* @cn Breadcrumb 全局 Semantic DOM 类名(root / item / separator / content / dropdown / dropdownItem)。
* @version 3.10.0
*/
classNames?: SemanticClassNames;
/**
* @en Global Semantic DOM styles for Breadcrumb (root / item / separator / content / dropdown / dropdownItem).
* @cn Breadcrumb 全局 Semantic DOM 样式(root / item / separator / content / dropdown / dropdownItem)。
* @version 3.10.0
*/
styles?: SemanticStyles;
};
type PaginationConfig = {
/**
* @en Global Semantic DOM classNames for Pagination (root / item / prev / next / jumper / sizeList).
* @cn Pagination 全局 Semantic DOM 类名(root / item / prev / next / jumper / sizeList)。
* @version 3.10.0
*/
classNames?: SemanticClassNames;
/**
* @en Global Semantic DOM styles for Pagination (root / item / prev / next / jumper / sizeList).
* @cn Pagination 全局 Semantic DOM 样式(root / item / prev / next / jumper / sizeList)。
* @version 3.10.0
*/
styles?: SemanticStyles;
};
type BadgeConfig = {
/**
* @en Global Semantic DOM classNames for Badge (root / badge).
* @cn Badge 全局 Semantic DOM 类名(root / badge)。
* @version 3.10.0
*/
classNames?: SemanticClassNames;
/**
* @en Global Semantic DOM styles for Badge (root / badge).
* @cn Badge 全局 Semantic DOM 样式(root / badge)。
* @version 3.10.0
*/
styles?: SemanticStyles;
};
type CardConfig = {
/**
* @en Global Semantic DOM classNames for Card (root / header / headerContent / headerExtra / body / footer).
* @cn Card 全局 Semantic DOM 类名(root / header / headerContent / headerExtra / body / footer)。
* @version 3.10.0
*/
classNames?: SemanticClassNames;
/**
* @en Global Semantic DOM styles for Card (root / header / headerContent / headerExtra / body / footer).
* @cn Card 全局 Semantic DOM 样式(root / header / headerContent / headerExtra / body / footer)。
* @version 3.10.0
*/
styles?: SemanticStyles;
};
type CarouselConfig = {
/**
* @en Global Semantic DOM classNames for Carousel (root / slider / item / indicator / indicatorItem / arrow).
* @cn Carousel 全局 Semantic DOM 类名(root / slider / item / indicator / indicatorItem / arrow)。
* @version 3.10.0
*/
classNames?: SemanticClassNames;
/**
* @en Global Semantic DOM styles for Carousel (root / slider / item / indicator / indicatorItem / arrow).
* @cn Carousel 全局 Semantic DOM 样式(root / slider / item / indicator / indicatorItem / arrow)。
* @version 3.10.0
*/
styles?: SemanticStyles;
};
type CollapseConfig = {
/**
* @en Global Semantic DOM classNames for Collapse (root / header / title / extra / content / icon).
* @cn Collapse 全局 Semantic DOM 类名(root / header / title / extra / content / icon)。
* @version 3.10.0
*/
classNames?: SemanticClassNames;
/**
* @en Global Semantic DOM styles for Collapse (root / header / title / extra / content / icon).
* @cn Collapse 全局 Semantic DOM 样式(root / header / title / extra / content / icon)。
* @version 3.10.0
*/
styles?: SemanticStyles;
};
type DescriptionsConfig = {
/**
* @en Global Semantic DOM classNames for Descriptions (root / header / title / extra / table / label / value).
* @cn Descriptions 全局 Semantic DOM 类名(root / header / title / extra / table / label / value)。
* @version 3.10.0
*/
classNames?: SemanticClassNames;
/**
* @en Global Semantic DOM styles for Descriptions (root / header / title / extra / table / label / value).
* @cn Descriptions 全局 Semantic DOM 样式(root / header / title / extra / table / label / value)。
* @version 3.10.0
*/
styles?: SemanticStyles;
};
type ImageConfig = {
/**
* @en Global Semantic DOM classNames for Image (root / img / placeholder / error).
* @cn Image 全局 Semantic DOM 类名(root / img / placeholder / error)。
* @version 3.10.0
*/
classNames?: SemanticClassNames;
/**
* @en Global Semantic DOM styles for Image (root / img / placeholder / error).
* @cn Image 全局 Semantic DOM 样式(root / img / placeholder / error)。
* @version 3.10.0
*/
styles?: SemanticStyles;
};
type ListConfig = {
/**
* @en Global Semantic DOM classNames for List (root / item / footer).
* @cn List 全局 Semantic DOM 类名(root / item / footer)。
* @version 3.10.0
*/
classNames?: SemanticClassNames;
/**
* @en Global Semantic DOM styles for List (root / item / footer).
* @cn List 全局 Semantic DOM 样式(root / item / footer)。
* @version 3.10.0
*/
styles?: SemanticStyles;
};
type SkeletonConfig = {
/**
* @en Global Semantic DOM classNames for Skeleton (root / image / text / button).
* @cn Skeleton 全局 Semantic DOM 类名(root / image / text / button)。
* @version 3.10.0
*/
classNames?: SemanticClassNames;
/**
* @en Global Semantic DOM styles for Skeleton (root / image / text / button).
* @cn Skeleton 全局 Semantic DOM 样式(root / image / text / button)。
* @version 3.10.0
*/
styles?: SemanticStyles;
};
type TabsConfig = {
/**
* @en Global Semantic DOM classNames for Tabs (root / header / tab / panel / extra / ink / prev / next / collapsible / inner).
* @cn Tabs 全局 Semantic DOM 类名(root / header / tab / panel / extra / ink / prev / next / collapsible / inner)。
* @version 3.10.0
*/
classNames?: SemanticClassNames;
/**
* @en Global Semantic DOM styles for Tabs (root / header / tab / panel / extra / ink / prev / next / collapsible / inner).
* @cn Tabs 全局 Semantic DOM 样式(root / header / tab / panel / extra / ink / prev / next / collapsible / inner)。
* @version 3.10.0
*/
styles?: SemanticStyles;
};
type TagConfig = {
/**
* @en Global Semantic DOM classNames for Tag (root / wrapper / closeIcon).
* @cn Tag 全局 Semantic DOM 类名(root / wrapper / closeIcon)。
* @version 3.10.0
*/
classNames?: SemanticClassNames;
/**
* @en Global Semantic DOM styles for Tag (root / wrapper / closeIcon).
* @cn Tag 全局 Semantic DOM 样式(root / wrapper / closeIcon)。
* @version 3.10.0
*/
styles?: SemanticStyles;
};
type TreeConfig = {
/**
* @en Global Semantic DOM classNames for Tree (root / node / content / icon).
* @cn Tree 全局 Semantic DOM 类名(root / node / content / icon)。
* @version 3.10.0
*/
classNames?: SemanticClassNames;
/**
* @en Global Semantic DOM styles for Tree (root / node / content / icon).
* @cn Tree 全局 Semantic DOM 样式(root / node / content / icon)。
* @version 3.10.0
*/
styles?: SemanticStyles;
};
type TableConfig = {
/**
* @en Global Semantic DOM classNames for Table (root / header / headerRow / headerCell / bodyRow / bodyCell / footer / footerCell / pagination).
* @cn Table 全局 Semantic DOM 类名(root / header / headerRow / headerCell / bodyRow / bodyCell / footer / footerCell / pagination)。
* @version 3.10.0
*/
classNames?: SemanticClassNames;
/**
* @en Global Semantic DOM styles for Table (root / header / headerRow / headerCell / bodyRow / bodyCell / footer / footerCell / pagination).
* @cn Table 全局 Semantic DOM 样式(root / header / headerRow / headerCell / bodyRow / bodyCell / footer / footerCell / pagination)。
* @version 3.10.0
*/
styles?: SemanticStyles;
};
type CascaderConfig = {
/**
* @en Global Semantic DOM classNames for Cascader (root / header / popup / list / option).
* @cn Cascader 全局 Semantic DOM 类名(root / header / popup / list / option)。
* @version 3.10.0
*/
classNames?: SemanticClassNames;
/**
* @en Global Semantic DOM styles for Cascader (root / header / popup / list / option).
* @cn Cascader 全局 Semantic DOM 样式(root / header / popup / list / option)。
* @version 3.10.0
*/
styles?: SemanticStyles;
};
type CheckboxConfig = {
/**
* @en Global Semantic DOM classNames for Checkbox (root / indicator / label / group).
* @cn Checkbox 全局 Semantic DOM 类名(root / indicator / label / group)。
* @version 3.10.0
*/
classNames?: SemanticClassNames;
/**
* @en Global Semantic DOM styles for Checkbox (root / indicator / label / group).
* @cn Checkbox 全局 Semantic DOM 样式(root / indicator / label / group)。
* @version 3.10.0
*/
styles?: SemanticStyles;
};
type RadioConfig = {
/**
* @en Global Semantic DOM classNames for Radio (root / indicator / label / group).
* @cn Radio 全局 Semantic DOM 类名(root / indicator / label / group)。
* @version 3.10.0
*/
classNames?: SemanticClassNames;
/**
* @en Global Semantic DOM styles for Radio (root / indicator / label / group).
* @cn Radio 全局 Semantic DOM 样式(root / indicator / label / group)。
* @version 3.10.0
*/
styles?: SemanticStyles;
};
type RateConfig = {
/**
* @en Global Semantic DOM classNames for Rate (root / star / text).
* @cn Rate 全局 Semantic DOM 类名(root / star / text)。
* @version 3.10.0
*/
classNames?: SemanticClassNames;
/**
* @en Global Semantic DOM styles for Rate (root / star / text).
* @cn Rate 全局 Semantic DOM 样式(root / star / text)。
* @version 3.10.0
*/
styles?: SemanticStyles;
};
type SliderConfig = {
/**
* @en Global Semantic DOM classNames for Slider (root / track / indicator / scale).
* @cn Slider 全局 Semantic DOM 类名(root / track / indicator / scale)。
* @version 3.10.0
*/
classNames?: SemanticClassNames;
/**
* @en Global Semantic DOM styles for Slider (root / track / indicator / scale).
* @cn Slider 全局 Semantic DOM 样式(root / track / indicator / scale)。
* @version 3.10.0
*/
styles?: SemanticStyles;
};
type SwitchConfig = {
/**
* @en Global Semantic DOM classNames for Switch (root / indicator / content).
* @cn Switch 全局 Semantic DOM 类名(root / indicator / content)。
* @version 3.10.0
*/
classNames?: SemanticClassNames;
/**
* @en Global Semantic DOM styles for Switch (root / indicator / content).
* @cn Switch 全局 Semantic DOM 样式(root / indicator / content)。
* @version 3.10.0
*/
styles?: SemanticStyles;
};
type TextareaConfig = {
/**
* @en Global Semantic DOM classNames for Textarea (root / textarea).
* @cn Textarea 全局 Semantic DOM 类名(root / textarea)。
* @version 3.10.0
*/
classNames?: SemanticClassNames;
/**
* @en Global Semantic DOM styles for Textarea (root / textarea).
* @cn Textarea 全局 Semantic DOM 样式(root / textarea)。
* @version 3.10.0
*/
styles?: SemanticStyles;
};
type TransferConfig = {
/**
* @en Global Semantic DOM classNames for Transfer (root / header / list / item / operations).
* @cn Transfer 全局 Semantic DOM 类名(root / header / list / item / operations)。
* @version 3.10.0
*/
classNames?: SemanticClassNames;
/**
* @en Global Semantic DOM styles for Transfer (root / header / list / item / operations).
* @cn Transfer 全局 Semantic DOM 样式(root / header / list / item / operations)。
* @version 3.10.0
*/
styles?: SemanticStyles;
};
type TreeSelectConfig = {
/**
* @en Global Semantic DOM classNames for TreeSelect (root / header / popup / list / option).
* @cn TreeSelect 全局 Semantic DOM 类名(root / header / popup / list / option)。
* @version 3.10.0
*/
classNames?: SemanticClassNames;
/**
* @en Global Semantic DOM styles for TreeSelect (root / header / popup / list / option).
* @cn TreeSelect 全局 Semantic DOM 样式(root / header / popup / list / option)。
* @version 3.10.0
*/
styles?: SemanticStyles;
};
type SelectConfig = {
/**
* @en Global Semantic DOM classNames for Select (root / header / popup / list / option / optionInner).
* @cn Select 全局 Semantic DOM 类名(root / header / popup / list / option / optionInner)。
* @version 3.10.0
*/
classNames?: SemanticClassNames;
/**
* @en Global Semantic DOM styles for Select (root / header / popup / list / option / optionInner).
* @cn Select 全局 Semantic DOM 样式(root / header / popup / list / option / optionInner)。
* @version 3.10.0
*/
styles?: SemanticStyles;
};
type UploadConfig = {
/**
* @en Global Semantic DOM classNames for Upload (root / handler / item).
* @cn Upload 全局 Semantic DOM 类名(root / handler / item)。
* @version 3.10.0
*/
classNames?: SemanticClassNames;
/**
* @en Global Semantic DOM styles for Upload (root / handler / item).
* @cn Upload 全局 Semantic DOM 样式(root / handler / item)。
* @version 3.10.0
*/
styles?: SemanticStyles;
};
type DatePickerConfig = {
/**
* @en Global Semantic DOM classNames for DatePicker (root / header / popup / popupHeader / cell / popupFooter).
* @cn DatePicker 全局 Semantic DOM 类名(root / header / popup / popupHeader / cell / popupFooter)。
* @version 3.10.0
*/
classNames?: SemanticClassNames;
/**
* @en Global Semantic DOM styles for DatePicker (root / header / popup / popupHeader / cell / popupFooter).
* @cn DatePicker 全局 Semantic DOM 样式(root / header / popup / popupHeader / cell / popupFooter)。
* @version 3.10.0
*/
styles?: SemanticStyles;
};
type FormConfig = {
/**
* @en Global Semantic DOM classNames for Form (root / item / label / control / error / tip).
* @cn Form 全局 Semantic DOM 类名(root / item / label / control / error / tip)。
* @version 3.10.0
*/
classNames?: SemanticClassNames;
/**
* @en Global Semantic DOM styles for Form (root / item / label / control / error / tip).
* @cn Form 全局 Semantic DOM 样式(root / item / label / control / error / tip)。
* @version 3.10.0
*/
styles?: SemanticStyles;
};
type FormItemConfig = {
/**
* @en Global Semantic DOM classNames for Form.Item (item / label / control / error / tip).
* @cn Form.Item 全局 Semantic DOM 类名(item / label / control / error / tip)。
* @version 3.10.0
*/
classNames?: SemanticClassNames;
/**
* @en Global Semantic DOM styles for Form.Item (item / label / control / error / tip).
* @cn Form.Item 全局 Semantic DOM 样式(item / label / control / error / tip)。
* @version 3.10.0
*/
styles?: SemanticStyles;
};
type InputConfig = {
/**
* @en Global Semantic DOM classNames for Input (root / input).
* @cn Input 全局 Semantic DOM 类名(root / input)。
* @version 3.10.0
*/
classNames?: SemanticClassNames;
/**
* @en Global Semantic DOM styles for Input (root / input).
* @cn Input 全局 Semantic DOM 样式(root / input)。
* @version 3.10.0
*/
styles?: SemanticStyles;
};
type AvatarConfig = {
/**
* @en Global Semantic DOM classNames for Avatar (root / group).
* @cn Avatar 全局 Semantic DOM 类名(root / group)。
* @version 3.10.0
*/
classNames?: SemanticClassNames;
/**
* @en Global Semantic DOM styles for Avatar (root / group).
* @cn Avatar 全局 Semantic DOM 样式(root / group)。
* @version 3.10.0
*/
styles?: SemanticStyles;
};
export interface ConfigOption {
prefix: string;
locale: LanType;
delay?: number;
trim?: boolean;
spin?: SpinConfig;
tooltip?: TooltipConfig;
popover?: PopoverConfig;
/**
* @en Global configuration for Modal component
* @cn Modal组件的全局配置
* @version 3.9.10
*/
modal?: ModalConfig;
/**
* @en Global configuration for Empty component
* @cn Empty组件的全局配置
* @version 3.8.0
*/
empty?: EmptyConfig;
/**
* @en Global configuration for Alert component
* @cn Alert组件的全局配置
* @version 3.10.0
*/
alert?: AlertConfig;
/**
* @en Global configuration for Drawer component
* @cn Drawer组件的全局配置
* @version 3.10.0
*/
drawer?: DrawerConfig;
/**
* @en Global configuration for Progress component
* @cn Progress组件的全局配置
* @version 3.10.0
*/
progress?: ProgressConfig;
/**
* @en Global configuration for Message component
* @cn Message组件的全局配置
* @version 3.10.0
*/
message?: MessageConfig;
/**
* @en Global configuration for Button component
* @cn Button组件的全局配置
* @version 3.10.0
*/
button?: ButtonConfig;
/**
* @en Global configuration for Link component
* @cn Link组件的全局配置
* @version 3.10.0
*/
link?: LinkConfig;
/**
* @en Global configuration for Divider component
* @cn Divider组件的全局配置
* @version 3.10.0
*/
divider?: DividerConfig;
/**
* @en Global configuration for Gap component
* @cn Gap组件的全局配置
* @version 3.10.0
*/
gap?: GapConfig;
/**
* @en Global configuration for Grid component
* @cn Grid组件的全局配置
* @version 3.10.0
*/
grid?: GridConfig;
/**
* @en Global configuration for Steps component
* @cn Steps组件的全局配置
* @version 3.10.0
*/
steps?: StepsConfig;
/**
* @en Global configuration for Menu component
* @cn Menu组件的全局配置
* @version 3.10.0
*/
menu?: MenuConfig;
/**
* @en Global configuration for Dropdown component
* @cn Dropdown组件的全局配置
* @version 3.10.0
*/
dropdown?: DropdownConfig;
/**
* @en Global configuration for Breadcrumb component
* @cn Breadcrumb组件的全局配置
* @version 3.10.0
*/
breadcrumb?: BreadcrumbConfig;
/**
* @en Global configuration for Pagination component
* @cn Pagination组件的全局配置
* @version 3.10.0
*/
pagination?: PaginationConfig;
/**
* @en Global configuration for Badge component
* @cn Badge组件的全局配置
* @version 3.10.0
*/
badge?: BadgeConfig;
/**
* @en Global configuration for Card component
* @cn Card组件的全局配置
* @version 3.10.0
*/
card?: CardConfig;
/**
* @en Global configuration for Carousel component
* @cn Carousel组件的全局配置
* @version 3.10.0
*/
carousel?: CarouselConfig;
/**
* @en Global configuration for Collapse component
* @cn Collapse组件的全局配置
* @version 3.10.0
*/
collapse?: CollapseConfig;
/**
* @en Global configuration for Descriptions component
* @cn Descriptions组件的全局配置
* @version 3.10.0
*/
descriptions?: DescriptionsConfig;
/**
* @en Global configuration for Image component
* @cn Image组件的全局配置
* @version 3.10.0
*/
image?: ImageConfig;
/**
* @en Global configuration for List component
* @cn List组件的全局配置
* @version 3.10.0
*/
list?: ListConfig;
/**
* @en Global configuration for Skeleton component
* @cn Skeleton组件的全局配置
* @version 3.10.0
*/
skeleton?: SkeletonConfig;
/**
* @en Global configuration for Tabs component
* @cn Tabs组件的全局配置
* @version 3.10.0
*/
tabs?: TabsConfig;
/**
* @en Global configuration for Tag component
* @cn Tag组件的全局配置
* @version 3.10.0
*/
tag?: TagConfig;
/**
* @en Global configuration for Tree component
* @cn Tree组件的全局配置
* @version 3.10.0
*/
tree?: TreeConfig;
/**
* @en Global configuration for Table component
* @cn Table组件的全局配置
* @version 3.10.0
*/
table?: TableConfig;
/**
* @en Global configuration for Cascader component
* @cn Cascader组件的全局配置
* @version 3.10.0
*/
cascader?: CascaderConfig;
/**
* @en Global configuration for Checkbox component
* @cn Checkbox组件的全局配置
* @version 3.10.0
*/
checkbox?: CheckboxConfig;
/**
* @en Global configuration for Radio component
* @cn Radio组件的全局配置
* @version 3.10.0
*/
radio?: RadioConfig;
/**
* @en Global configuration for Rate component
* @cn Rate组件的全局配置
* @version 3.10.0
*/
rate?: RateConfig;
/**
* @en Global configuration for Slider component
* @cn Slider组件的全局配置
* @version 3.10.0
*/
slider?: SliderConfig;
/**
* @en Global configuration for Switch component
* @cn Switch组件的全局配置
* @version 3.10.0
*/
switch?: SwitchConfig;
/**
* @en Global configuration for Textarea component
* @cn Textarea组件的全局配置
* @version 3.10.0
*/
textarea?: TextareaConfig;
/**
* @en Global configuration for Transfer component
* @cn Transfer组件的全局配置
* @version 3.10.0
*/
transfer?: TransferConfig;
/**
* @en Global configuration for TreeSelect component
* @cn TreeSelect组件的全局配置
* @version 3.10.0
*/
treeSelect?: TreeSelectConfig;
/**
* @en Global configuration for Select component
* @cn Select组件的全局配置
* @version 3.10.0
*/
select?: SelectConfig;
/**
* @en Global configuration for Upload component
* @cn Upload组件的全局配置
* @version 3.10.0
*/
upload?: UploadConfig;
/**
* @en Global configuration for DatePicker component
* @cn DatePicker组件的全局配置
* @version 3.10.0
*/
datePicker?: DatePickerConfig;
/**
* @en Global configuration for Form component
* @cn Form组件的全局配置
* @version 3.10.0
*/
form?: FormConfig;
/**
* @en Global configuration for Form.Item component
* @cn Form.Item组件的全局配置
* @version 3.10.0
*/
formItem?: FormItemConfig;
/**
* @en Global configuration for Input component
* @cn Input组件的全局配置
* @version 3.10.0
*/
input?: InputConfig;
/**
* @en Global configuration for Avatar component
* @cn Avatar组件的全局配置
* @version 3.10.0
*/
avatar?: AvatarConfig;
direction: Direction;
popupContainer?: HTMLElement | null | (() => HTMLElement | null);
}
export declare const defaultConfig: ConfigOption;
export declare let config: ConfigOption;
export declare function getDefaultContainer(): HTMLElement | null;
export declare const useConfig: () => ConfigOption;
export declare const setConfig: (option: Partial) => void;
export { setLocale, getLocale } from './locale/index';
//# sourceMappingURL=index.d.ts.map