zhihao-ui-react 1.0.1-beta.1 → 1.0.1-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +11 -1
- package/dist/index.js +514 -456
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1463,6 +1463,14 @@ interface TablePageable {
|
|
|
1463
1463
|
size: number;
|
|
1464
1464
|
total: number;
|
|
1465
1465
|
}
|
|
1466
|
+
interface TableHeaderScope<RecordType> {
|
|
1467
|
+
selectedList: RecordType[];
|
|
1468
|
+
selectedListIds: TableRowKey[];
|
|
1469
|
+
isSelected: boolean;
|
|
1470
|
+
}
|
|
1471
|
+
interface TablePaginationLeftScope {
|
|
1472
|
+
pageable: TablePageable;
|
|
1473
|
+
}
|
|
1466
1474
|
interface TableRequestResult<RecordType> {
|
|
1467
1475
|
list: RecordType[];
|
|
1468
1476
|
currentPage: number;
|
|
@@ -1633,6 +1641,8 @@ interface TableProps<RecordType = Record<string, unknown>> extends NativeTableHo
|
|
|
1633
1641
|
isShowSearch?: boolean;
|
|
1634
1642
|
isShowSearchBtn?: boolean;
|
|
1635
1643
|
isShowResetBtn?: boolean;
|
|
1644
|
+
tableHeader?: ReactNode | ((scope: TableHeaderScope<RecordType>) => ReactNode);
|
|
1645
|
+
paginationLeft?: ReactNode | ((scope: TablePaginationLeftScope) => ReactNode);
|
|
1636
1646
|
beforeReset?: () => void;
|
|
1637
1647
|
searchClearSelection?: boolean;
|
|
1638
1648
|
rowExpandable?: (row: RecordType) => boolean;
|
|
@@ -2148,4 +2158,4 @@ type ClassNameValue = string | false | null | undefined;
|
|
|
2148
2158
|
/** 合并类名,过滤空值并保持传入顺序稳定。 */
|
|
2149
2159
|
declare function mergeClassNames(...classNames: ClassNameValue[]): string;
|
|
2150
2160
|
//#endregion
|
|
2151
|
-
export { Alert, type AlertCloseType, type AlertProps, type AlertType, Awaitable, Badge, type BadgeProps, type BadgeRef, BadgeRibbon, type BadgeRibbonProps, type BaseOptionType, Button, type ButtonColor, ButtonGroup, type ButtonGroupProps, type ButtonProps, type ButtonRef, type ButtonStyle, Cascader, type CascaderConfig, type CascaderLazyLoad, type CascaderLazyNode, type CascaderOption, type CascaderOptionContentContext, type CascaderOptionType, CascaderPanel, type CascaderPanelProps, type CascaderProps, type CascaderSize, type CascaderSuggestionContext, type CascaderSuggestionItem, type CascaderTagContext, type CascaderValue, CheckTag, type CheckTagProps, Checkbox, CheckboxButton, CheckboxGroup, type CheckboxGroupProps, type CheckboxGroupSize, type CheckboxGroupType, type CheckboxGroupValue, type CheckboxGroupVariant, type CheckboxOption, type CheckboxOptionProps, type CheckboxProps, type CheckboxSize, type CheckboxValue, type ClassNameValue, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, DatetimePicker, type DatetimePickerProps, DatetimeRangePicker, type DatetimeRangePickerProps, Dialog, type DialogBeforeClose, type DialogProps, Divider, type DividerProps, type DividerTone, Dropdown, type DropdownButtonProps, type DropdownMenuItem, type DropdownProps, Empty, type EmptyProps, type FigmaTooltipPlacement, Form, type FormInstance, type FormItemProps, type FormListFieldData, type FormListOperation, type FormListProps, type FormProps, Header, type HeaderNavItem, type HeaderProps, Icon, type IconName, type IconProps, Image, type ImagePreviewGroupProps, type GroupPreviewConfig as ImagePreviewGroupType, type ImagePreviewType, type ImageProps, type ImageRef, ImageViewer, type ImageViewerAction, type ImageViewerActionOptions, type ImageViewerErrorContext, type ImageViewerProgressContext, type ImageViewerProps, type ImageViewerRef, type ImageViewerSlot, type ImageViewerToolbarContext, Input, type InputFilledProps, type InputGroupProps, type InputProps, type InputRef, type InputSize, Loading, type LoadingMask, type LoadingOverlayProps, type LoadingProps, type LoadingSize, type LoadingType, Menu, type MenuItem, type MenuProps, type AntdMenuRef as MenuRef, Pagination, type PaginationLocale, type PaginationProps, type PasswordProps, Progress, type ProgressProps, type ProgressVariant, Radio, RadioButton, RadioGroup, type RadioGroupProps, type RadioGroupResolveInput, type RadioGroupType, type RadioGroupVariant, type RadioOption, type RadioOptionProps, type RadioProps, type RadioResolveInput, type RadioSize, type RadioValue, type RefSelectProps, type ResolvedRadioGroupOptions, type ResolvedRadioOption, type ResolvedRadioOptions, Result, type ResultProps, type ResultStatusType, RgbColor, type Rule, type RuleObject, type RuleRender, type SearchProps, Select, type DefaultOptionType as SelectOption, type SelectProps, type SelectSize, Step, type StepItem, type StepProps, Steps, type StepsProps, Switch, type SwitchProps, type SwitchSize, type TabItem, type TabPaneProps, TabPanel, type TabPanelBeforeLeave, type TabPanelContextMenuAction, type TabPanelContextMenuActionItem, type TabPanelEditAction, type TabPanelItem, type TabPanelOpenContextMenuOptions, type TabPanelPaneContext, type TabPanelPaneName, type TabPanelPaneProps, type TabPanelPosition, type TabPanelProps, type TabPanelRef, type TabPanelType, Table, type TableAlign, type TableCellContext, type TableColumnProps, type TableColumnType, type TableCurrentChangeHandler, type TableDefaultSort, type TableEnumOption, type TableEnumSource, type TableFieldNames, type TableFilterItem, type TableFilterValue, type TableFixed, type TableLayout, type TablePageable, type TableProps, type TableRef, type TableRequestData, type TableRequestResult, type TableRowKey, type TableSearchParams, type TableSearchProps, type TableSearchRenderScope, type TableSearchType, type TableSize, type TableSortChangeContext, type TableSortOrder, type TableTreeNode, type TableTreeProps, Tabs, type TabsProps, type AntdTabsRef as TabsRef, Tag, type TagEffect, type TagProps, type TagSize, type TagType, type TextAreaProps, TimePicker, type TimePickerProps, TimeRangePicker, type TimeRangePickerProps, Timeline, TimelineItem, TimelineItemPlacement, TimelineItemProps, TimelineItemSize, TimelineItemType, TimelineMode, TimelineProps, Tooltip, type TooltipEffect, type TooltipPlacement, type TooltipProps, Tree, type TreeActionsProps, type DataNode as TreeDataNode, type TreeProps, Upload, UploadFile, UploadFiles, UploadListType, UploadProgressEvent, UploadProps, UploadRawFile, UploadRef, UploadRequestOptions, UploadStatus, UploadUserFile, antdTheme, blendColor, createAntdTheme, createColorPalette, headerNavItems, hexToRgb, iconNames, icons, mergeClassNames, normalizeHexColor, paletteSeedColors, seedToken, sideMenuItems, toHexChannel };
|
|
2161
|
+
export { Alert, type AlertCloseType, type AlertProps, type AlertType, Awaitable, Badge, type BadgeProps, type BadgeRef, BadgeRibbon, type BadgeRibbonProps, type BaseOptionType, Button, type ButtonColor, ButtonGroup, type ButtonGroupProps, type ButtonProps, type ButtonRef, type ButtonStyle, Cascader, type CascaderConfig, type CascaderLazyLoad, type CascaderLazyNode, type CascaderOption, type CascaderOptionContentContext, type CascaderOptionType, CascaderPanel, type CascaderPanelProps, type CascaderProps, type CascaderSize, type CascaderSuggestionContext, type CascaderSuggestionItem, type CascaderTagContext, type CascaderValue, CheckTag, type CheckTagProps, Checkbox, CheckboxButton, CheckboxGroup, type CheckboxGroupProps, type CheckboxGroupSize, type CheckboxGroupType, type CheckboxGroupValue, type CheckboxGroupVariant, type CheckboxOption, type CheckboxOptionProps, type CheckboxProps, type CheckboxSize, type CheckboxValue, type ClassNameValue, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, DatetimePicker, type DatetimePickerProps, DatetimeRangePicker, type DatetimeRangePickerProps, Dialog, type DialogBeforeClose, type DialogProps, Divider, type DividerProps, type DividerTone, Dropdown, type DropdownButtonProps, type DropdownMenuItem, type DropdownProps, Empty, type EmptyProps, type FigmaTooltipPlacement, Form, type FormInstance, type FormItemProps, type FormListFieldData, type FormListOperation, type FormListProps, type FormProps, Header, type HeaderNavItem, type HeaderProps, Icon, type IconName, type IconProps, Image, type ImagePreviewGroupProps, type GroupPreviewConfig as ImagePreviewGroupType, type ImagePreviewType, type ImageProps, type ImageRef, ImageViewer, type ImageViewerAction, type ImageViewerActionOptions, type ImageViewerErrorContext, type ImageViewerProgressContext, type ImageViewerProps, type ImageViewerRef, type ImageViewerSlot, type ImageViewerToolbarContext, Input, type InputFilledProps, type InputGroupProps, type InputProps, type InputRef, type InputSize, Loading, type LoadingMask, type LoadingOverlayProps, type LoadingProps, type LoadingSize, type LoadingType, Menu, type MenuItem, type MenuProps, type AntdMenuRef as MenuRef, Pagination, type PaginationLocale, type PaginationProps, type PasswordProps, Progress, type ProgressProps, type ProgressVariant, Radio, RadioButton, RadioGroup, type RadioGroupProps, type RadioGroupResolveInput, type RadioGroupType, type RadioGroupVariant, type RadioOption, type RadioOptionProps, type RadioProps, type RadioResolveInput, type RadioSize, type RadioValue, type RefSelectProps, type ResolvedRadioGroupOptions, type ResolvedRadioOption, type ResolvedRadioOptions, Result, type ResultProps, type ResultStatusType, RgbColor, type Rule, type RuleObject, type RuleRender, type SearchProps, Select, type DefaultOptionType as SelectOption, type SelectProps, type SelectSize, Step, type StepItem, type StepProps, Steps, type StepsProps, Switch, type SwitchProps, type SwitchSize, type TabItem, type TabPaneProps, TabPanel, type TabPanelBeforeLeave, type TabPanelContextMenuAction, type TabPanelContextMenuActionItem, type TabPanelEditAction, type TabPanelItem, type TabPanelOpenContextMenuOptions, type TabPanelPaneContext, type TabPanelPaneName, type TabPanelPaneProps, type TabPanelPosition, type TabPanelProps, type TabPanelRef, type TabPanelType, Table, type TableAlign, type TableCellContext, type TableColumnProps, type TableColumnType, type TableCurrentChangeHandler, type TableDefaultSort, type TableEnumOption, type TableEnumSource, type TableFieldNames, type TableFilterItem, type TableFilterValue, type TableFixed, type TableHeaderScope, type TableLayout, type TablePageable, type TablePaginationLeftScope, type TableProps, type TableRef, type TableRequestData, type TableRequestResult, type TableRowKey, type TableSearchParams, type TableSearchProps, type TableSearchRenderScope, type TableSearchType, type TableSize, type TableSortChangeContext, type TableSortOrder, type TableTreeNode, type TableTreeProps, Tabs, type TabsProps, type AntdTabsRef as TabsRef, Tag, type TagEffect, type TagProps, type TagSize, type TagType, type TextAreaProps, TimePicker, type TimePickerProps, TimeRangePicker, type TimeRangePickerProps, Timeline, TimelineItem, TimelineItemPlacement, TimelineItemProps, TimelineItemSize, TimelineItemType, TimelineMode, TimelineProps, Tooltip, type TooltipEffect, type TooltipPlacement, type TooltipProps, Tree, type TreeActionsProps, type DataNode as TreeDataNode, type TreeProps, Upload, UploadFile, UploadFiles, UploadListType, UploadProgressEvent, UploadProps, UploadRawFile, UploadRef, UploadRequestOptions, UploadStatus, UploadUserFile, antdTheme, blendColor, createAntdTheme, createColorPalette, headerNavItems, hexToRgb, iconNames, icons, mergeClassNames, normalizeHexColor, paletteSeedColors, seedToken, sideMenuItems, toHexChannel };
|