@regenbio/regenbio-components-react 1.3.36 → 1.3.38

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.
@@ -1,6 +1,6 @@
1
1
  import { RbDataChartProps } from "./type";
2
2
  /**
3
- * 数据表格Hook
3
+ * 数据图表Hook
4
4
  * @param props 参数
5
5
  */
6
6
  declare const useDataChart: (props: RbDataChartProps) => {
@@ -0,0 +1,26 @@
1
+ import { RbDataTableProps } from "./type";
2
+ /**
3
+ * 数据表格Hook
4
+ * @param props 参数
5
+ */
6
+ declare const useDataTable: <DataSource, U, ValueType>(props: RbDataTableProps<DataSource, U, ValueType>) => {
7
+ requestData: (_params: any, _sort: any, _filter: any) => Promise<any>;
8
+ beforeSearchSubmit: any;
9
+ executeRecordParams: any;
10
+ setCollapsed: any;
11
+ setParams: any;
12
+ tableKey: any;
13
+ styles: {
14
+ customTable: string;
15
+ };
16
+ params: any;
17
+ actionRef: any;
18
+ responsive: any;
19
+ form: import("antd").FormInstance<any>;
20
+ collapsed: any;
21
+ loading: any;
22
+ columns: any;
23
+ dataLength: any;
24
+ intl: any;
25
+ };
26
+ export default useDataTable;
@@ -0,0 +1,128 @@
1
+ import { useEffect } from 'react';
2
+ import { RbDragTableProps } from "./type";
3
+ import { ActionType } from "@ant-design/pro-components";
4
+ import { RbActionType } from "../DataTable/type";
5
+ /**
6
+ * 拖动表格Hook
7
+ * @param props 属性
8
+ */
9
+ declare const useDragTable: <DataSource, U, ValueType = "text">(props: RbDragTableProps<DataSource, U, ValueType>) => {
10
+ setTableLoading: any;
11
+ responsive: any;
12
+ styles: {
13
+ customTable: string;
14
+ };
15
+ tableLoading: any;
16
+ restProps: {
17
+ actionRef?: useEffect<RbActionType | undefined>;
18
+ responsive?: boolean;
19
+ loadChange?: (loading: boolean) => void;
20
+ toolbar?: import("@ant-design/pro-components").ListToolBarProps;
21
+ ghost?: boolean;
22
+ params?: U;
23
+ columnsStateMap?: Record<string, import("@ant-design/pro-components").ColumnsState>;
24
+ onColumnsStateChange?: (map: Record<string, import("@ant-design/pro-components").ColumnsState>) => void;
25
+ columnsState?: import("@ant-design/pro-table/es/typing").ColumnStateType;
26
+ onSizeChange?: (size: import("@ant-design/pro-table/es/components/ToolBar/DensityIcon").DensitySize) => void;
27
+ cardProps?: import("@ant-design/pro-components").ProCardProps | false;
28
+ tableRender?: (props: import("@ant-design/pro-components").ProTableProps<DataSource, U, ValueType>, defaultDom: JSX.Element, domList: {
29
+ toolbar: JSX.Element | undefined;
30
+ alert: JSX.Element | undefined;
31
+ table: JSX.Element | undefined;
32
+ }) => useEffect;
33
+ tableViewRender?: (props: import("antd").TableProps<DataSource>, defaultDom: JSX.Element) => JSX.Element | undefined;
34
+ tableExtraRender?: (props: import("@ant-design/pro-components").ProTableProps<DataSource, U, ValueType>, dataSource: DataSource[]) => useEffect;
35
+ searchFormRender?: (props: import("@ant-design/pro-components").ProTableProps<DataSource, U, ValueType>, defaultDom: JSX.Element) => useEffect;
36
+ postData?: any;
37
+ defaultData?: DataSource[];
38
+ formRef?: import("@ant-design/pro-table/es/components/Form/FormRender").TableFormItem<DataSource_1>["formRef"];
39
+ toolBarRender?: false | ((action: ActionType | undefined, rows: {
40
+ selectedRowKeys?: (string | number)[];
41
+ selectedRows?: DataSource[];
42
+ }) => useEffect[]);
43
+ optionsRender?: (props: import("@ant-design/pro-table/es/components/ToolBar").ToolBarProps<DataSource>, defaultDom: useEffect[]) => useEffect[];
44
+ onLoad?: (dataSource: DataSource[]) => void;
45
+ onLoadingChange?: (loading: boolean | import("antd").SpinProps | undefined) => void;
46
+ onRequestError?: (e: Error) => void;
47
+ polling?: number | ((dataSource: DataSource[]) => number);
48
+ tableClassName?: string;
49
+ tableStyle?: useEffect;
50
+ headerTitle?: useEffect;
51
+ tooltip?: string | import("antd/lib/form/FormItemLabel").LabelTooltipType;
52
+ options?: import("@ant-design/pro-table/es/components/ToolBar").OptionConfig | false;
53
+ search?: false | import("@ant-design/pro-table/es/components/Form/FormRender").SearchConfig;
54
+ form?: Omit<import("@ant-design/pro-components").ProFormProps & import("@ant-design/pro-components").QueryFilterProps, "form">;
55
+ dateFormatter?: (string & {}) | "string" | "number" | ((value: import("dayjs").Dayjs, valueType: string) => string | number) | false;
56
+ beforeSearchSubmit?: (params: Partial<U>) => any;
57
+ tableAlertRender?: import("@ant-design/pro-table/es/components/Alert").AlertRenderType<DataSource>;
58
+ tableAlertOptionRender?: import("@ant-design/pro-table/es/components/Alert").AlertRenderType<DataSource>;
59
+ rowSelection?: false | (import("antd/es/table/interface").TableRowSelection<DataSource> & {
60
+ alwaysShowAlert?: boolean;
61
+ });
62
+ style?: useEffect;
63
+ type?: import("@ant-design/pro-components").ProSchemaComponentTypes;
64
+ onSubmit?: (params: U) => void;
65
+ onReset?: () => void;
66
+ columnEmptyText?: import("@ant-design/pro-field").ProFieldEmptyText;
67
+ manualRequest?: boolean;
68
+ editable?: import("@ant-design/pro-components").RowEditableConfig<DataSource>;
69
+ onDataSourceChange?: (dataSource: DataSource[]) => void;
70
+ cardBordered?: import("@ant-design/pro-table/es/typing").Bordered;
71
+ debounceTime?: number;
72
+ revalidateOnFocus?: boolean;
73
+ defaultSize?: import("antd/lib/button").ButtonSize;
74
+ name?: import("rc-field-form/lib/interface").NamePath;
75
+ ErrorBoundary?: useEffect<any, any> | false;
76
+ scroll?: import("rc-table").TableProps<RecordType>["scroll"] & {
77
+ scrollToFirstRowOnChange?: boolean;
78
+ };
79
+ expandedRowKeys?: import("rc-table/lib/interface").Key[];
80
+ defaultExpandedRowKeys?: import("rc-table/lib/interface").Key[];
81
+ expandedRowRender?: import("rc-table/lib/interface").ExpandedRowRender<DataSource>;
82
+ expandRowByClick?: boolean;
83
+ expandIcon?: import("rc-table/lib/interface").RenderExpandIcon<DataSource>;
84
+ onExpand?: (expanded: boolean, record: DataSource) => void;
85
+ onExpandedRowsChange?: (expandedKeys: import("rc-table/lib/interface").Key[]) => void;
86
+ defaultExpandAllRows?: boolean;
87
+ indentSize?: number;
88
+ expandIconColumnIndex?: number;
89
+ expandedRowClassName?: import("rc-table/lib/interface").RowClassName<DataSource>;
90
+ childrenColumnName?: string;
91
+ title?: import("rc-table/lib/interface").PanelRender<DataSource>;
92
+ prefixCls?: string;
93
+ className?: string;
94
+ children?: useEffect;
95
+ rowKey?: string | keyof DataSource | import("rc-table/lib/interface").GetRowKey<DataSource>;
96
+ tableLayout?: import("rc-table/lib/interface").TableLayout;
97
+ expandable?: import("rc-table/lib/interface").ExpandableConfig<DataSource>;
98
+ rowClassName?: string | import("rc-table/lib/interface").RowClassName<DataSource>;
99
+ footer?: import("rc-table/lib/interface").PanelRender<DataSource>;
100
+ summary?: (data: readonly DataSource[]) => useEffect;
101
+ caption?: useEffect;
102
+ id?: string;
103
+ showHeader?: boolean;
104
+ components?: import("rc-table/lib/interface").TableComponents<DataSource>;
105
+ onRow?: import("rc-table/lib/interface").GetComponentProps<DataSource>;
106
+ onHeaderRow?: import("rc-table/lib/interface").GetComponentProps<readonly import("rc-table").ColumnType<DataSource>[]>;
107
+ direction?: import("rc-table/lib/interface").Direction;
108
+ sticky?: boolean | import("rc-table/lib/interface").TableSticky;
109
+ rowHoverable?: boolean;
110
+ onScroll?: useEffect<HTMLDivElement>;
111
+ tailor?: boolean;
112
+ getContainerWidth?: (ele: HTMLElement, width: number) => number;
113
+ dropdownPrefixCls?: string;
114
+ dataSource?: readonly DataSource[];
115
+ pagination?: false | import("antd").TablePaginationConfig;
116
+ size?: import("antd/es/button").ButtonSize;
117
+ bordered?: boolean;
118
+ locale?: import("antd/es/table/interface").TableLocale;
119
+ rootClassName?: string;
120
+ onChange?: (pagination: import("antd").TablePaginationConfig, filters: Record<string, import("antd/es/table/interface").FilterValue | null>, sorter: import("antd/es/table/interface").SorterResult<DataSource> | import("antd/es/table/interface").SorterResult<DataSource>[], extra: import("antd/es/table/interface").TableCurrentDataSource<DataSource>) => void;
121
+ getPopupContainer?: import("antd/es/table/interface").GetPopupContainer;
122
+ sortDirections?: import("antd/es/table/interface").SortOrder[];
123
+ showSorterTooltip?: boolean | import("antd/es/table/interface").SorterTooltipProps;
124
+ virtual?: boolean;
125
+ };
126
+ actionRef: any;
127
+ };
128
+ export default useDragTable;
@@ -0,0 +1,10 @@
1
+ import { RbFileTagProps } from "./type";
2
+ /**
3
+ * 文件标签Hook
4
+ */
5
+ declare const useFileTag: (props: RbFileTagProps) => {
6
+ intl: any;
7
+ getExtension: any;
8
+ getIconByFilename: any;
9
+ };
10
+ export default useFileTag;
@@ -1,9 +1,2 @@
1
- import React from 'react';
2
- import { RbFileTagProps } from "./type";
3
- /**
4
- * RB 文件标签
5
- *
6
- * @constructor
7
- */
8
- declare const RbFileTag: React.FC<RbFileTagProps>;
9
- export default RbFileTag;
1
+ declare const _default: any;
2
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import { RbHtmlRenderProps } from "./type";
2
+ declare const useHtmlRender: (props: RbHtmlRenderProps) => {
3
+ renderContent: any;
4
+ };
5
+ export default useHtmlRender;
@@ -0,0 +1,11 @@
1
+ import { RbIconRenderProps } from "./type";
2
+ /**
3
+ * 图标渲染器Hook
4
+ * @param props 属性
5
+ */
6
+ declare const useIconRender: (props: RbIconRenderProps) => {
7
+ antIcon: {
8
+ [key: string]: any;
9
+ };
10
+ };
11
+ export default useIconRender;
@@ -0,0 +1,17 @@
1
+ import { RbUserCardProps } from "./type";
2
+ declare const useUserCard: (props: RbUserCardProps) => {
3
+ getAvatar: any;
4
+ onShowTooltip: any;
5
+ getNameLabel: any;
6
+ userDetail: any;
7
+ loading: any;
8
+ intl: any;
9
+ rbValueEnum: {
10
+ convertListToMap: (list: import("../../../services/types/commonType").ConstantListItem[]) => Map<any, import("@ant-design/pro-provider").ProSchemaValueEnumType>;
11
+ };
12
+ rbAuthorize: {
13
+ checkResource: (sign: string | undefined, gap?: boolean) => boolean;
14
+ };
15
+ isMe: any;
16
+ };
17
+ export default useUserCard;
package/build/index.d.ts CHANGED
@@ -106,7 +106,7 @@ declare const _default: {
106
106
  RbActionBar: React.FC<RbActionBarProps>;
107
107
  RbThemeSetter: React.FC<import("./components/Other/ThemeSetter/type").RbThemeProps>;
108
108
  RbDataChart: React.FC<RbDataChartProps>;
109
- RbFileTag: React.FC<RbFileTagProps>;
109
+ RbFileTag: any;
110
110
  RbUserCard: React.FC<RbUserCardProps>;
111
111
  RbIconRender: React.FC<RbIconRenderProps>;
112
112
  RbHtmlRender: React.FC<RbHtmlRenderProps>;