reykit 1.0.264 → 1.0.266
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.js +594 -591
- package/dist/src/component/Breadcrumb.d.ts +4 -8
- package/dist/src/component/Table.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
* @Author : Rey
|
|
4
|
-
* @Contact : reyxbo@163.com
|
|
5
|
-
* @Explain : Breadcrumb components.
|
|
6
|
-
*/
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import * as ui from './ui';
|
|
7
3
|
export { type BreadcrumbDict, Breadcrumb };
|
|
8
4
|
type BreadcrumbDict = Record<string, {
|
|
9
5
|
label: string;
|
|
@@ -14,6 +10,6 @@ type BreadcrumbDict = Record<string, {
|
|
|
14
10
|
*
|
|
15
11
|
* @param props.dict - Breadcrumb data dictionary.
|
|
16
12
|
*/
|
|
17
|
-
declare function Breadcrumb({ dict }: {
|
|
13
|
+
declare function Breadcrumb({ dict, ...props }: {
|
|
18
14
|
dict: BreadcrumbDict;
|
|
19
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
} & ComponentProps<typeof ui.Breadcrumb>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { ReactNode, SetStateAction } from 'react';
|
|
2
2
|
export { type TableFieldOption, type DefaultTableFieldOption, type TableSearchOption, type TableButtonOption, type TableRowOptionItemLink, type TableRowOptionItem, type TableRowOption, type TableSelectRowsOptionItem, type TableSelectRowsOption, Table };
|
|
3
3
|
type TableFieldOption<Row extends Record<string, any>> = {
|
|
4
4
|
key: string;
|
|
@@ -85,7 +85,7 @@ type TableSelectRowsOption<Row extends Record<string, any>> = {
|
|
|
85
85
|
*/
|
|
86
86
|
declare function Table<Row extends Record<string, any>>({ data, setData, fieldOption, defaultFieldOption, searchOption, buttonOption, rowOption, selectRowsOption, pageSize, mobilePageSize, language }: {
|
|
87
87
|
data: Row[];
|
|
88
|
-
setData: (value: Row[]
|
|
88
|
+
setData: (value: SetStateAction<Row[]>) => void;
|
|
89
89
|
fieldOption?: TableFieldOption<Row>;
|
|
90
90
|
defaultFieldOption?: DefaultTableFieldOption;
|
|
91
91
|
searchOption?: TableSearchOption<Row>;
|