bj-web-components 0.2.17 → 0.2.18

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.
Files changed (86) hide show
  1. package/README.md +205 -205
  2. package/dist/index.d.ts +26 -4
  3. package/dist/miniapp.d.ts +1 -1
  4. package/dist/mobile.d.ts +1 -1
  5. package/dist/react.d.ts +1 -1
  6. package/dist/shared.d.ts +1 -1
  7. package/dist/style.css +1 -1
  8. package/dist/web/Table/BTable.js +1 -1
  9. package/dist/web/Table/BTable.mjs +446 -419
  10. package/dist/web.d.ts +1139 -2
  11. package/package.json +92 -92
  12. package/dist/miniapp/index.d.ts +0 -0
  13. package/dist/mobile/index.d.ts +0 -0
  14. package/dist/react/index.d.ts +0 -0
  15. package/dist/shared/index.d.ts +0 -0
  16. package/dist/web/BasicInput/BInput.d.ts +0 -3
  17. package/dist/web/BasicInput/index.d.ts +0 -2
  18. package/dist/web/BasicInput/types.d.ts +0 -32
  19. package/dist/web/BasicInput/utils.d.ts +0 -13
  20. package/dist/web/CategoryDropdown/CategoryDropdown.d.ts +0 -2
  21. package/dist/web/CategoryDropdown/index.d.ts +0 -2
  22. package/dist/web/CategoryDropdown/types.d.ts +0 -31
  23. package/dist/web/CheckBox/BCheckBox.d.ts +0 -3
  24. package/dist/web/CheckBox/Group.d.ts +0 -3
  25. package/dist/web/CheckBox/context.d.ts +0 -11
  26. package/dist/web/CheckBox/index.d.ts +0 -9
  27. package/dist/web/CheckBox/types.d.ts +0 -54
  28. package/dist/web/Dropdown/BDropdown.d.ts +0 -2
  29. package/dist/web/Dropdown/index.d.ts +0 -2
  30. package/dist/web/Dropdown/types.d.ts +0 -41
  31. package/dist/web/EmptyInputBox/EmptyInputBox.d.ts +0 -3
  32. package/dist/web/EmptyInputBox/index.d.ts +0 -2
  33. package/dist/web/EmptyInputBox/types.d.ts +0 -28
  34. package/dist/web/FileCard/FileCard.d.ts +0 -2
  35. package/dist/web/FileCard/index.d.ts +0 -2
  36. package/dist/web/FileCard/types.d.ts +0 -20
  37. package/dist/web/Icon/Icon.d.ts +0 -6
  38. package/dist/web/Icon/index.d.ts +0 -2
  39. package/dist/web/Icon/types.d.ts +0 -11
  40. package/dist/web/Input/Input.d.ts +0 -3
  41. package/dist/web/Input/index.d.ts +0 -2
  42. package/dist/web/Input/types.d.ts +0 -55
  43. package/dist/web/InputNumber/BInputNumber.d.ts +0 -3
  44. package/dist/web/InputNumber/StepHandler.d.ts +0 -10
  45. package/dist/web/InputNumber/hooks/useCursor.d.ts +0 -2
  46. package/dist/web/InputNumber/hooks/useFrame.d.ts +0 -2
  47. package/dist/web/InputNumber/index.d.ts +0 -2
  48. package/dist/web/InputNumber/types.d.ts +0 -60
  49. package/dist/web/InputNumber/utils/decimal.d.ts +0 -46
  50. package/dist/web/Modal/Modal.d.ts +0 -2
  51. package/dist/web/Modal/index.d.ts +0 -2
  52. package/dist/web/Modal/types.d.ts +0 -42
  53. package/dist/web/OverlayScrollbar/BOverlayScrollbar.d.ts +0 -2
  54. package/dist/web/OverlayScrollbar/index.d.ts +0 -2
  55. package/dist/web/OverlayScrollbar/types.d.ts +0 -18
  56. package/dist/web/Pagination/Pagination.d.ts +0 -3
  57. package/dist/web/Pagination/index.d.ts +0 -2
  58. package/dist/web/Pagination/types.d.ts +0 -44
  59. package/dist/web/ProductField/ProductField.d.ts +0 -2
  60. package/dist/web/ProductField/index.d.ts +0 -2
  61. package/dist/web/ProductField/types.d.ts +0 -48
  62. package/dist/web/SkuInputCard/SkuInputCard.d.ts +0 -2
  63. package/dist/web/SkuInputCard/index.d.ts +0 -2
  64. package/dist/web/SkuInputCard/types.d.ts +0 -63
  65. package/dist/web/Switch/Switch.d.ts +0 -6
  66. package/dist/web/Switch/index.d.ts +0 -2
  67. package/dist/web/Switch/types.d.ts +0 -29
  68. package/dist/web/Table/BTable.d.ts +0 -10
  69. package/dist/web/Table/Column.d.ts +0 -3
  70. package/dist/web/Table/ColumnGroup.d.ts +0 -3
  71. package/dist/web/Table/index.d.ts +0 -4
  72. package/dist/web/Table/types.d.ts +0 -299
  73. package/dist/web/Table/utils/columns.d.ts +0 -11
  74. package/dist/web/Table/utils/sortFilter.d.ts +0 -7
  75. package/dist/web/Tabs/BTabs.d.ts +0 -8
  76. package/dist/web/Tabs/TabPane.d.ts +0 -7
  77. package/dist/web/Tabs/index.d.ts +0 -3
  78. package/dist/web/Tabs/types.d.ts +0 -32
  79. package/dist/web/Tooltip/ConfirmTooltip.d.ts +0 -2
  80. package/dist/web/Tooltip/ContentTooltip.d.ts +0 -2
  81. package/dist/web/Tooltip/ProgressTooltip.d.ts +0 -2
  82. package/dist/web/Tooltip/TooltipWrapper.d.ts +0 -3
  83. package/dist/web/Tooltip/index.d.ts +0 -6
  84. package/dist/web/Tooltip/types.d.ts +0 -36
  85. package/dist/web/Tooltip/useAutoPlacement.d.ts +0 -7
  86. package/dist/web/index.d.ts +0 -18
@@ -1,60 +0,0 @@
1
- import { CSSProperties, FocusEvent, KeyboardEvent, ReactNode } from 'react';
2
- export type BInputNumberSize = 'small' | 'middle' | 'large';
3
- export type BInputNumberStatus = 'error' | 'warning';
4
- export interface BInputNumberProps {
5
- value?: number | string | null;
6
- defaultValue?: number | string | null;
7
- onChange?: (value: number | null) => void;
8
- min?: number | string;
9
- max?: number | string;
10
- /** Step used by the up/down controls and ArrowUp/ArrowDown. Defaults to 1. */
11
- step?: number | string;
12
- /** Fixed decimal precision. When unset, inferred from the value/step. */
13
- precision?: number;
14
- disabled?: boolean;
15
- readOnly?: boolean;
16
- placeholder?: string;
17
- autoFocus?: boolean;
18
- size?: BInputNumberSize;
19
- status?: BInputNumberStatus;
20
- /** Set to false for a borderless input. */
21
- bordered?: boolean;
22
- /**
23
- * Show up/down controls, or provide a custom icon. Defaults to true.
24
- * The default control is a single combined up/down icon: clicking its top half increases
25
- * the value, its bottom half decreases it.
26
- */
27
- controls?: boolean | {
28
- icon?: ReactNode;
29
- };
30
- /** Enable ArrowUp/ArrowDown keyboard stepping. Defaults to true. */
31
- keyboard?: boolean;
32
- /** Step on mouse wheel while focused. Defaults to false. */
33
- changeOnWheel?: boolean;
34
- /** Flush the input value to onChange on blur. Defaults to true. */
35
- changeOnBlur?: boolean;
36
- addonBefore?: ReactNode;
37
- addonAfter?: ReactNode;
38
- prefix?: ReactNode;
39
- suffix?: ReactNode;
40
- /** Custom display formatter, e.g. `(v) => \`$ ${v}\`` */
41
- formatter?: (value: number | string | undefined, info: {
42
- userTyping: boolean;
43
- input: string;
44
- }) => string;
45
- /** Reverse of `formatter`: strips display-only characters before parsing. */
46
- parser?: (displayValue: string) => string;
47
- /** Decimal separator for both display and parsing, e.g. ',' for locales that use it. */
48
- decimalSeparator?: string;
49
- onStep?: (value: number, info: {
50
- offset: number | string;
51
- type: 'up' | 'down';
52
- }) => void;
53
- onPressEnter?: (event: KeyboardEvent<HTMLInputElement>) => void;
54
- onFocus?: (event: FocusEvent<HTMLInputElement>) => void;
55
- onBlur?: (event: FocusEvent<HTMLInputElement>) => void;
56
- id?: string;
57
- name?: string;
58
- className?: string;
59
- style?: CSSProperties;
60
- }
@@ -1,46 +0,0 @@
1
- /**
2
- * Minimal, dependency-free precision-safe decimal helper.
3
- * Ported (and trimmed to the Number-only path) from `@rc-component/mini-decimal`,
4
- * which `rc-input-number` relies on. BigInt string-mode support was dropped since
5
- * this component only needs to match native `number` precision, not arbitrary
6
- * precision big numbers.
7
- */
8
- export declare function isEmptyValue(value: unknown): boolean;
9
- export interface TrimmedNumber {
10
- negative: boolean;
11
- negativeStr: string;
12
- trimStr: string;
13
- integerStr: string;
14
- decimalStr: string;
15
- fullStr: string;
16
- }
17
- /** Format string number to a readable, zero-trimmed number string. */
18
- export declare function trimNumber(numStr: string): TrimmedNumber;
19
- /** [Legacy] Convert 1e-9 to 0.000000001. May lose precision for very large exponents. */
20
- export declare function getNumberPrecision(number: unknown): number;
21
- /** Convert a number (including scientific notation) to `-xxx.yyy` format string. */
22
- export declare function num2str(number: number): string;
23
- export declare function validateNumber(num: unknown): boolean;
24
- export declare class Decimal {
25
- private origin;
26
- private number;
27
- private empty;
28
- constructor(value: unknown);
29
- negate(): Decimal;
30
- add(value: unknown): Decimal;
31
- isEmpty(): boolean;
32
- isNaN(): boolean;
33
- isInvalidate(): boolean;
34
- equals(target: Decimal | null | undefined): boolean;
35
- lessEquals(target: Decimal): boolean;
36
- toNumber(): number;
37
- toString(safe?: boolean): string;
38
- }
39
- export declare function getDecimal(value: unknown): Decimal;
40
- /**
41
- * Align the logic of toFixed to round like 1.5 => 2.
42
- * If `cutOnly` is set, will just truncate the extra decimal part instead of rounding.
43
- */
44
- export declare function toFixed(numStr: string, separatorStr: string, precision?: number, cutOnly?: boolean): string;
45
- /** Returns the step value multiplied by 10, used for Shift+ArrowUp/Down. */
46
- export declare function getDecupleSteps(step: number | string): string;
@@ -1,2 +0,0 @@
1
- import { BuModalProps } from './types';
2
- export default function BuModal({ open, title, mode, children, okText, cancelText, onOk, onCancel, onClose, activeLang, onLangChange, labels, hint, confirmLoading, width, className, style, }: BuModalProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1,2 +0,0 @@
1
- export { default as BuModal } from './Modal';
2
- export type { BuModalProps, ModalMode, ModalLang } from './types';
@@ -1,42 +0,0 @@
1
- import { CSSProperties, ReactNode } from 'react';
2
- export type ModalMode = 'standard' | 'bilingual' | 'single';
3
- export type ModalLang = 'zh' | 'en';
4
- export interface BuModalProps {
5
- /** 是否显示弹窗 */
6
- open?: boolean;
7
- /** 弹窗标题 */
8
- title?: string;
9
- /** 弹窗模式:standard 双按钮 | bilingual 双语双按钮 | single 单按钮居中 */
10
- mode?: ModalMode;
11
- /** 弹窗内容 */
12
- children?: ReactNode;
13
- /** 确认按钮文字 */
14
- okText?: string;
15
- /** 取消按钮文字(standard / bilingual 模式生效) */
16
- cancelText?: string;
17
- /** 确认回调 */
18
- onOk?: () => void;
19
- /** 取消回调 */
20
- onCancel?: () => void;
21
- /** 关闭回调(点击 × 或遮罩) */
22
- onClose?: () => void;
23
- /** bilingual 模式下当前激活语言 */
24
- activeLang?: ModalLang;
25
- /** bilingual 模式下语言切换回调 */
26
- onLangChange?: (lang: ModalLang) => void;
27
- /** 按钮上方的提示文字,12px #999 */
28
- hint?: string;
29
- /** Override display labels for i18n support */
30
- labels?: {
31
- zh?: string;
32
- en?: string;
33
- };
34
- /** 确认按钮加载中状态 */
35
- confirmLoading?: boolean;
36
- /** 弹窗宽度,默认 480px,作用于内层白框 */
37
- width?: number | string;
38
- /** 自定义类名,挂在最外层遮罩上(整个 modal) */
39
- className?: string;
40
- /** 自定义样式,作用于内层白框 */
41
- style?: CSSProperties;
42
- }
@@ -1,2 +0,0 @@
1
- import { BOverlayScrollbarProps } from './types';
2
- export default function BOverlayScrollbar({ containerRef, targetRef, selector, direction, size, gap, background, showOnHover, showOnScroll, hoverSelector, horizontalInsetStart, horizontalInsetEnd, horizontalThumbLength, className, }: BOverlayScrollbarProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- export { default as BOverlayScrollbar } from './BOverlayScrollbar';
2
- export type { BOverlayScrollbarProps, OverlayScrollbarDirection } from './types';
@@ -1,18 +0,0 @@
1
- import { CSSProperties, RefObject } from 'react';
2
- export type OverlayScrollbarDirection = 'vertical' | 'horizontal' | 'both';
3
- export interface BOverlayScrollbarProps {
4
- containerRef: RefObject<HTMLElement | null>;
5
- targetRef?: RefObject<HTMLElement | null>;
6
- selector?: string;
7
- direction?: OverlayScrollbarDirection;
8
- size?: number;
9
- gap?: number;
10
- background?: CSSProperties['backgroundColor'];
11
- showOnHover?: boolean;
12
- showOnScroll?: boolean;
13
- hoverSelector?: string;
14
- horizontalInsetStart?: number;
15
- horizontalInsetEnd?: number;
16
- horizontalThumbLength?: number;
17
- className?: string;
18
- }
@@ -1,3 +0,0 @@
1
- import { PaginationProps } from './types';
2
- declare const Pagination: (props: PaginationProps) => import("react/jsx-runtime").JSX.Element | null;
3
- export default Pagination;
@@ -1,2 +0,0 @@
1
- export { default as Pagination } from './Pagination';
2
- export type { PaginationProps, PaginationSize, PaginationAlign } from './types';
@@ -1,44 +0,0 @@
1
- import { CSSProperties, ReactNode } from 'react';
2
- export type PaginationSize = 'small' | 'medium' | 'large';
3
- export type PaginationAlign = 'start' | 'center' | 'end';
4
- export type PopupPlacement = 'bottom' | 'top';
5
- export interface PaginationProps {
6
- /** 国际化方法,默认返回原参数 */
7
- t?: (text: string) => string;
8
- current?: number;
9
- defaultCurrent?: number;
10
- pageSize?: number;
11
- defaultPageSize?: number;
12
- total?: number;
13
- onChange?: (page: number, pageSize: number) => void;
14
- onShowSizeChange?: (current: number, size: number) => void;
15
- showSizeChanger?: boolean;
16
- showQuickJumper?: boolean | {
17
- goButton?: ReactNode;
18
- };
19
- pageSizeOptions?: number[];
20
- disabled?: boolean;
21
- hideOnSinglePage?: boolean;
22
- showTotal?: boolean | ((total: number, range: [number, number]) => ReactNode);
23
- size?: PaginationSize;
24
- align?: PaginationAlign;
25
- simple?: boolean;
26
- /** 下拉弹框弹出位置,最高优先级。默认自动检测:底部空间不足时翻转到顶部 */
27
- popupPlacement?: PopupPlacement;
28
- /**
29
- * 自定义弹出方向判断逻辑,优先于内置的自动检测。
30
- * 返回 'top' / 'bottom' 采用返回值;返回 undefined 则回退到内置的自动检测逻辑。
31
- */
32
- resolvePopupPlacement?: (info: {
33
- /** 触发器(size changer)在视口中的位置 */
34
- triggerRect: DOMRect;
35
- /** 下拉面板预估高度 */
36
- dropdownHeight: number;
37
- /** 当前视口高度 */
38
- viewportHeight: number;
39
- }) => 'top' | 'bottom' | undefined;
40
- /** 追加到 size changer 下拉面板(.pagination-sizer-dropdown)上的自定义 className */
41
- dropdownClassName?: string;
42
- className?: string;
43
- style?: CSSProperties;
44
- }
@@ -1,2 +0,0 @@
1
- import { BuProductFieldProps } from './types';
2
- export default function BuProductField({ options, value, onChange, placeholder, emptyText, onManageField, multiple, showSearch, showSort, addButtonText, onAdd, labels, className, style, getPopupContainer, }: BuProductFieldProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- export { default as BuProductField } from './ProductField';
2
- export type { BuProductFieldProps, ProductFieldOption } from './types';
@@ -1,48 +0,0 @@
1
- import { CSSProperties, ReactNode } from 'react';
2
- export interface ProductFieldOption {
3
- /** 选项唯一标识 */
4
- value: string;
5
- /** 选项显示内容,支持字符串或 React 元素 */
6
- label: ReactNode;
7
- /** 搜索匹配文本,label 为 ReactNode 时必须提供,否则该选项不参与搜索过滤 */
8
- searchText?: string;
9
- }
10
- export interface BuProductFieldProps {
11
- /** 可选项列表 */
12
- options?: ProductFieldOption[];
13
- /** 当前选中值(受控) */
14
- value?: string[];
15
- /** 选中变化回调 */
16
- onChange?: (values: string[]) => void;
17
- /** 触发器占位文字 */
18
- placeholder?: string;
19
- /** 无数据主文案 */
20
- emptyText?: string;
21
- /** 点击"管理字段"的回调 */
22
- onManageField?: () => void;
23
- /** 单选模式(默认多选) */
24
- multiple?: boolean;
25
- /** 是否显示搜索框(默认 true) */
26
- showSearch?: boolean;
27
- /** 是否显示排序按钮(默认 true) */
28
- showSort?: boolean;
29
- /** 底部新增区域内容(字符串或 React 元素),不传则不显示 */
30
- addButtonText?: ReactNode;
31
- /** 点击新增按钮的回调 */
32
- onAdd?: () => void;
33
- /** Override display labels for i18n support */
34
- labels?: {
35
- searchPlaceholder?: string;
36
- sortDefault?: string;
37
- sortAsc?: string;
38
- sortDesc?: string;
39
- noMatchText?: string;
40
- manageFieldPre?: string;
41
- manageFieldLink?: string;
42
- manageFieldPost?: string;
43
- };
44
- className?: string;
45
- style?: CSSProperties;
46
- /** 自定义下拉面板挂载容器,返回目标 DOM 元素。默认挂载到 document.body */
47
- getPopupContainer?: () => HTMLElement;
48
- }
@@ -1,2 +0,0 @@
1
- import { SkuInputCardProps } from './types';
2
- export default function SkuInputCard({ id, name, onNameChange, mode, activeLang, onLangChange, showBody, error, onDelete, onPreviewImage, onDeleteImage, onUpload, onAssociate, images, labels, inputEvents, className, style, options, optionFilterProp, onSelect, onSearch, open: controlledOpen, onDropdownVisibleChange, }: SkuInputCardProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- export { default as SkuInputCard } from './SkuInputCard';
2
- export type { SkuInputCardProps, SkuInputMode, SkuInputLang, SkuInputOption } from './types';
@@ -1,63 +0,0 @@
1
- import { CSSProperties, InputHTMLAttributes, ReactNode } from 'react';
2
- export type SkuInputMode = 'single' | 'bilingual';
3
- export type SkuInputLang = 'zh' | 'en';
4
- export interface SkuInputOption {
5
- value: string;
6
- label: ReactNode;
7
- disabled?: boolean;
8
- }
9
- export interface SkuInputCardProps {
10
- /** Drag handle id, for external DnD libraries */
11
- id?: string;
12
- /** Product name value */
13
- name?: string;
14
- onNameChange?: (value: string) => void;
15
- /** single: no language toggle; bilingual: show 中文/EN toggle */
16
- mode?: SkuInputMode;
17
- /** Active language when mode is bilingual */
18
- activeLang?: SkuInputLang;
19
- onLangChange?: (lang: SkuInputLang) => void;
20
- /** Show/hide the body content area */
21
- showBody?: boolean;
22
- /** Error state — red border + tinted input */
23
- error?: boolean;
24
- onDelete?: () => void;
25
- /** Called when user clicks the preview button on an uploaded image */
26
- onPreviewImage?: (url: string) => void;
27
- /** Called when user clicks the delete button on an uploaded image */
28
- onDeleteImage?: (url: string) => void;
29
- /**
30
- * Parent-provided upload handler. Receives the selected File and should
31
- * return a URL string (or Promise<string>) to display the image.
32
- * If not provided the component manages uploads internally.
33
- */
34
- onUpload?: (file: File) => string | Promise<string>;
35
- /** Called when user clicks "关联图片". Parent is responsible for providing the image URL. */
36
- onAssociate?: () => void;
37
- /** Externally managed image list (URLs). Controls displayed images when provided. */
38
- images?: string[];
39
- /** Override display labels for i18n support */
40
- labels?: {
41
- namePlaceholder?: string;
42
- uploadLocal?: string;
43
- associateImage?: string;
44
- searchPlaceholder?: string;
45
- notFoundContent?: string;
46
- };
47
- /** Input event handlers applied to the name input element */
48
- inputEvents?: Omit<InputHTMLAttributes<HTMLInputElement>, 'value' | 'onChange' | 'style' | 'className'>;
49
- className?: string;
50
- style?: CSSProperties;
51
- /** Options for the search dropdown. When provided the input shows a dropdown on focus/type. */
52
- options?: SkuInputOption[];
53
- /** Custom filter: receives the option and the current input value; return true to show. */
54
- optionFilterProp?: (option: SkuInputOption, inputValue: string) => boolean;
55
- /** Called when user selects an option from the dropdown. */
56
- onSelect?: (value: string, option: SkuInputOption) => void;
57
- /** Called when input value changes while dropdown is active (for remote search). */
58
- onSearch?: (value: string) => void;
59
- /** Whether the dropdown is visible (controlled mode). */
60
- open?: boolean;
61
- /** Callback when dropdown visibility changes. */
62
- onDropdownVisibleChange?: (visible: boolean) => void;
63
- }
@@ -1,6 +0,0 @@
1
- import { BuSwitchProps } from './types';
2
- declare const BuSwitch: {
3
- ({ checked: controlledChecked, defaultChecked, onChange, disabled, loading, checkedChildren, unCheckedChildren, theme, activeColor, inactiveColor, className, style, }: BuSwitchProps): import("react/jsx-runtime").JSX.Element;
4
- displayName: string;
5
- };
6
- export default BuSwitch;
@@ -1,2 +0,0 @@
1
- export { default as BuSwitch } from './Switch';
2
- export type { BuSwitchProps, BuSwitchTheme } from './types';
@@ -1,29 +0,0 @@
1
- import { CSSProperties, ReactNode } from 'react';
2
- /** 开关颜色主题 */
3
- export type BuSwitchTheme = 'light' | 'dark';
4
- export interface BuSwitchProps {
5
- /** 是否选中(受控) */
6
- checked?: boolean;
7
- /** 初始是否选中(非受控) */
8
- defaultChecked?: boolean;
9
- /** 变化回调 */
10
- onChange?: (checked: boolean) => void;
11
- /** 是否禁用 */
12
- disabled?: boolean;
13
- /** 加载中 */
14
- loading?: boolean;
15
- /** 选中时的内容(显示在开关内部右侧) */
16
- checkedChildren?: ReactNode;
17
- /** 未选中时的内容(显示在开关内部左侧) */
18
- unCheckedChildren?: ReactNode;
19
- /** 颜色主题:light=黑灰系, dark=品牌红系 */
20
- theme?: BuSwitchTheme;
21
- /** 自定义选中颜色,覆盖 theme 默认色 */
22
- activeColor?: string;
23
- /** 自定义未选中颜色,覆盖 theme 默认色 */
24
- inactiveColor?: string;
25
- /** 自定义类名 */
26
- className?: string;
27
- /** 自定义样式 */
28
- style?: CSSProperties;
29
- }
@@ -1,10 +0,0 @@
1
- import { default as Column } from './Column';
2
- import { default as ColumnGroup } from './ColumnGroup';
3
- import { TableProps } from './types';
4
- declare function BTable<RecordType extends object>({ columns, dataSource, rowKey, rowSelection, pagination, loading, bordered, size, showHeader, emptyText, emptyImage, emptyHeight, t, className, style, rowClassName, sortDirections, onChange, children, title, footer, summary, tableLayout, components, onRow, onHeaderRow, id, scroll, locale, }: TableProps<RecordType>): import("react/jsx-runtime").JSX.Element;
5
- declare const CompoundBTable: typeof BTable & {
6
- Column: typeof Column;
7
- ColumnGroup: typeof ColumnGroup;
8
- };
9
- export default CompoundBTable;
10
- export { CompoundBTable as BTable };
@@ -1,3 +0,0 @@
1
- import { ColumnProps } from './types';
2
- declare function Column<RecordType>(_: ColumnProps<RecordType>): null;
3
- export default Column;
@@ -1,3 +0,0 @@
1
- import { ColumnGroupProps } from './types';
2
- declare function ColumnGroup<RecordType>(_: ColumnGroupProps<RecordType>): null;
3
- export default ColumnGroup;
@@ -1,4 +0,0 @@
1
- export { BTable } from './BTable';
2
- export { default as Column } from './Column';
3
- export { default as ColumnGroup } from './ColumnGroup';
4
- export type { Breakpoint, CellType, ColumnFilterItem, ColumnGroupProps, ColumnGroupType, ColumnProps, ColumnsType, ColumnTitleProps, ColumnType, CompareFn, ExpandableConfig, FilterDropdownProps, FilterRequest, FilterSearchType, FilterValue, FixedType, GetRowKey, RenderedCell, SortOrder, SorterResult, TableAlign, TableComponents, TableDataIndex, TableKey, TableLocale, TablePaginationConfig, TableProps, TableRowSelection, TableSelectionType, TableSize, } from './types';