@huibo-ui/react-antd 1.0.0 → 1.0.1
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/lib/index.d.ts +37 -0
- package/lib/index.js +8 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -217,3 +217,40 @@ export { Breadcrumb } from './components/Breadcrumb';
|
|
|
217
217
|
export { Typography } from './components/Typography';
|
|
218
218
|
export { QRCode } from './components/QRCode';
|
|
219
219
|
export { TimePicker } from './components/TimePicker';
|
|
220
|
+
export type { FormInstance, FormProps } from './components/Form';
|
|
221
|
+
export type { ColumnType as ColumnGroupType } from './components/Table';
|
|
222
|
+
export type TablePaginationConfig = {
|
|
223
|
+
current?: number;
|
|
224
|
+
pageSize?: number;
|
|
225
|
+
total?: number;
|
|
226
|
+
showSizeChanger?: boolean;
|
|
227
|
+
pageSizeOptions?: string[];
|
|
228
|
+
[k: string]: any;
|
|
229
|
+
};
|
|
230
|
+
export type MenuItemType = {
|
|
231
|
+
key: React.Key;
|
|
232
|
+
label?: React.ReactNode;
|
|
233
|
+
children?: MenuItemType[];
|
|
234
|
+
disabled?: boolean;
|
|
235
|
+
type?: string;
|
|
236
|
+
[k: string]: any;
|
|
237
|
+
};
|
|
238
|
+
export type DescriptionsProps = {
|
|
239
|
+
title?: React.ReactNode;
|
|
240
|
+
bordered?: boolean;
|
|
241
|
+
column?: number | object;
|
|
242
|
+
size?: 'default' | 'middle' | 'small';
|
|
243
|
+
layout?: 'horizontal' | 'vertical';
|
|
244
|
+
colon?: boolean;
|
|
245
|
+
[k: string]: any;
|
|
246
|
+
};
|
|
247
|
+
/**
|
|
248
|
+
* antd theme 命名空间兼容。
|
|
249
|
+
* react-antd 用 CSS 变量驱动主题,无 token 算法;useToken 返回空 token 兜底,
|
|
250
|
+
* 避免业务代码 `const { token } = theme.useToken()` 崩溃(取到的 token.* 为 undefined)。
|
|
251
|
+
*/
|
|
252
|
+
export declare const theme: {
|
|
253
|
+
useToken: () => {
|
|
254
|
+
token: Record<string, any>;
|
|
255
|
+
};
|
|
256
|
+
};
|
package/lib/index.js
CHANGED
|
@@ -121,3 +121,11 @@ export { Breadcrumb } from './components/Breadcrumb';
|
|
|
121
121
|
export { Typography } from './components/Typography';
|
|
122
122
|
export { QRCode } from './components/QRCode';
|
|
123
123
|
export { TimePicker } from './components/TimePicker';
|
|
124
|
+
/**
|
|
125
|
+
* antd theme 命名空间兼容。
|
|
126
|
+
* react-antd 用 CSS 变量驱动主题,无 token 算法;useToken 返回空 token 兜底,
|
|
127
|
+
* 避免业务代码 `const { token } = theme.useToken()` 崩溃(取到的 token.* 为 undefined)。
|
|
128
|
+
*/
|
|
129
|
+
export const theme = {
|
|
130
|
+
useToken: () => ({ token: {} }),
|
|
131
|
+
};
|