geneeantd 0.0.24 → 0.0.26
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/components/DetailView/types.d.ts +2 -0
- package/dist/components/DoubleColLayout/type.d.ts +5 -0
- package/dist/components/DynamicForm/types.d.ts +2 -1
- package/dist/components/TablePlus/types.d.ts +2 -1
- package/dist/genee-antd.es.js +8693 -8678
- package/dist/genee-antd.umd.js +82 -82
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ThemeConfig } from 'antd';
|
|
1
2
|
export type TabItem = {
|
|
2
3
|
key: string;
|
|
3
4
|
label: string;
|
|
@@ -9,6 +10,7 @@ export type Tabs = {
|
|
|
9
10
|
onChange?: (key: string) => void;
|
|
10
11
|
};
|
|
11
12
|
export type Props = {
|
|
13
|
+
theme?: ThemeConfig;
|
|
12
14
|
title?: React.ReactNode;
|
|
13
15
|
buttonBar?: React.ReactNode;
|
|
14
16
|
statistic?: React.ReactNode;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ThemeConfig } from 'antd';
|
|
1
2
|
import { CSSProperties } from 'react';
|
|
2
3
|
export type menuItem = {
|
|
3
4
|
label: string;
|
|
@@ -83,4 +84,8 @@ export interface DoubleColLayoutProps {
|
|
|
83
84
|
* 折叠状态变化回调
|
|
84
85
|
*/
|
|
85
86
|
onCollapse?: (collapsed: boolean) => void;
|
|
87
|
+
/**
|
|
88
|
+
* 自定义主题配置
|
|
89
|
+
*/
|
|
90
|
+
theme?: ThemeConfig;
|
|
86
91
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FormInstance } from 'antd';
|
|
1
|
+
import { FormInstance, ThemeConfig } from 'antd';
|
|
2
2
|
export interface FormItem {
|
|
3
3
|
label: string;
|
|
4
4
|
name: string;
|
|
@@ -41,4 +41,5 @@ export interface FormConfig {
|
|
|
41
41
|
};
|
|
42
42
|
onValuesChange?: (values: Record<string, unknown>) => void;
|
|
43
43
|
initialValues?: Record<string, unknown>;
|
|
44
|
+
theme?: ThemeConfig;
|
|
44
45
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TableProps } from 'antd/lib';
|
|
2
2
|
import { ColumnType } from 'antd/es/table';
|
|
3
|
-
import { ButtonProps } from 'antd';
|
|
3
|
+
import { ButtonProps, ThemeConfig } from 'antd';
|
|
4
4
|
import { default as React } from 'react';
|
|
5
5
|
export interface OperationType<T = any> {
|
|
6
6
|
label: string;
|
|
@@ -59,6 +59,7 @@ export interface TablePlusProps<T = any> extends Omit<TableProps<T>, 'columns'>
|
|
|
59
59
|
showQuickJumper?: boolean;
|
|
60
60
|
onChange?: (page: number, pageSize: number) => void;
|
|
61
61
|
} | false;
|
|
62
|
+
theme?: ThemeConfig;
|
|
62
63
|
}
|
|
63
64
|
export interface TableRefProps {
|
|
64
65
|
refresh?: () => void;
|