@team_yumi/ramen 1.2.3-next.20250528-8befd78-8103cf162f7d90533fc4feb49fff6548 → 1.2.3-next.20250606-5428775-580fb845dd754b0073d4df2870df67f8
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/package.json
CHANGED
|
@@ -12,7 +12,7 @@ export interface IProps {
|
|
|
12
12
|
children?: React.ReactNode;
|
|
13
13
|
icon?: (typeof Collections.IIcon)[number];
|
|
14
14
|
title: string;
|
|
15
|
-
size?: (typeof Collections.
|
|
15
|
+
size?: (typeof Collections.IModalSize)[number];
|
|
16
16
|
headerType?: (typeof Collections.IHeaderType)[number];
|
|
17
17
|
footerAlign?: (typeof Collections.IFooterAlign)[number];
|
|
18
18
|
closable?: boolean;
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import { Collections } from '@yumi/models';
|
|
2
2
|
import React from 'react';
|
|
3
|
+
type Tabs = {
|
|
4
|
+
value: string;
|
|
5
|
+
count?: number | null;
|
|
6
|
+
};
|
|
3
7
|
export interface IProps {
|
|
4
|
-
tabs:
|
|
8
|
+
tabs: Tabs[];
|
|
5
9
|
activeTab: string;
|
|
6
10
|
setActiveTab: (value: string) => void;
|
|
7
11
|
type?: (typeof Collections.ITheme)[number];
|
|
8
12
|
fontSize?: (typeof Collections.IFontSize)[number];
|
|
13
|
+
filterAction?: React.ReactNode;
|
|
9
14
|
}
|
|
10
15
|
declare const XTabUnderline: React.FC<IProps>;
|
|
11
16
|
export default XTabUnderline;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
import { IProps as IXButtonProps } from '../../core/x-button/root';
|
|
3
3
|
import { IProps as IXSearchInputProps } from '../../core/x-search-input/root';
|
|
4
4
|
type TTitle = {
|
|
@@ -22,7 +22,7 @@ interface IHeader {
|
|
|
22
22
|
right?: TButton[];
|
|
23
23
|
}
|
|
24
24
|
interface IColumn {
|
|
25
|
-
title: string;
|
|
25
|
+
title: string | React.ReactNode;
|
|
26
26
|
dataIndex?: string;
|
|
27
27
|
key: string;
|
|
28
28
|
sorter?: boolean;
|
|
@@ -53,6 +53,8 @@ export interface IProps {
|
|
|
53
53
|
onChange: (sorter?: XTableSorter, pagination?: XTablePagination) => void;
|
|
54
54
|
maxRenderedPages?: number;
|
|
55
55
|
skeleton?: boolean;
|
|
56
|
+
paginationLocation?: 'up' | 'down';
|
|
57
|
+
footerAction?: ReactNode;
|
|
56
58
|
}
|
|
57
59
|
declare const XTable: React.FC<IProps>;
|
|
58
60
|
export default XTable;
|