@teamix/pro 1.5.17 → 1.5.18-beta
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/fonts/txddinmedium.woff +0 -0
- package/dist/pro.all.min.css +1 -0
- package/dist/pro.css +1 -0
- package/dist/pro.js +114772 -0
- package/dist/pro.min.css +1 -0
- package/dist/pro.min.js +2 -0
- package/dist/pro.min.js.LICENSE.txt +47 -0
- package/dist/pro.xconsole.min.css +1 -0
- package/es/actions/dialog-component.js +1 -4
- package/es/actions/dialog-form.js +4 -3
- package/es/actions/dialog.js +2 -1
- package/es/actions/index.js +35 -22
- package/es/actions/quick.js +1 -4
- package/es/card/card-container.js +12 -5
- package/es/card/divider.js +2 -4
- package/es/card/index.js +18 -7
- package/es/card/selectable.js +2 -4
- package/es/card/tab.js +2 -4
- package/es/form/Components/Editable/index.js +1 -1
- package/es/form/Components/FormGroup/index.js +4 -3
- package/es/form/Components/LightFilter/index.js +11 -2
- package/es/form/Components/ProField/index.js +2 -4
- package/es/form/Components/Text/index.js +2 -4
- package/es/form/Filter/AdvancedFilter.js +16 -14
- package/es/form/Filter/LightFilter.js +13 -9
- package/es/form/Filter/SimpleFilter.js +8 -5
- package/es/form/Filter/index.js +24 -7
- package/es/form/Filter/index.scss +1 -0
- package/es/form/Filter/index2.js +22 -17
- package/es/form/Filter/index2.scss +1 -0
- package/es/form/Filter/useBindUrl.js +3 -0
- package/es/form/Filter/useSpecialProps.js +1 -0
- package/es/form/ProForm/index.js +5 -2
- package/es/form/ProForm/useAutoLayout.js +4 -0
- package/es/form/ProForm/useFormDisplayValues.js +1 -0
- package/es/form/SchemaForm/adapterComponent.js +1 -0
- package/es/form/SchemaForm/adapterDecorator.js +1 -0
- package/es/form/SchemaForm/adapterType.js +1 -0
- package/es/form/SchemaForm/index.js +13 -0
- package/es/form/SchemaForm/initializeFormButton.js +2 -0
- package/es/form/SchemaForm/initializeReactions.js +1 -0
- package/es/form/SchemaForm/initializeSelectTable.js +1 -0
- package/es/form/SchemaForm/reactions.js +5 -0
- package/es/form/index.js +4 -0
- package/es/form/utils.js +12 -0
- package/es/form/warning.js +2 -0
- package/es/index.js +3 -1
- package/es/info/components/InfoGroup/index.js +2 -4
- package/es/info/components/InfoValueItem/index.js +32 -20
- package/es/info/components/ProInfoItem/index.js +1 -0
- package/es/info/components/baseInfo/index.js +3 -0
- package/es/info/components/tableInfo/index.js +6 -4
- package/es/info/index.js +11 -5
- package/es/info/utils/index.js +3 -0
- package/es/layout/index.js +2 -0
- package/es/nocode/index.js +2 -0
- package/es/nocode/pages/index.js +3 -0
- package/es/nocode/pages/playground.js +3 -5
- package/es/nocode/pages/renderer.js +4 -6
- package/es/nocode/playground.js +2 -4
- package/es/page-header/index.js +12 -7
- package/es/sidebar/components/sidebar-container/index.js +10 -7
- package/es/sidebar/components/tree/index.js +22 -4
- package/es/sidebar/components/tree-node/components/HoverTooltip/index.js +3 -4
- package/es/sidebar/components/tree-node/components/IconAction/index.js +4 -2
- package/es/sidebar/components/tree-node/components/IconSwitch/index.js +1 -0
- package/es/sidebar/components/tree-node/index.js +29 -16
- package/es/sidebar/index.js +15 -4
- package/es/sidebar/utils/index.js +19 -11
- package/es/table/components/CardView/index.js +29 -13
- package/es/table/components/Filter/index.js +11 -0
- package/es/table/components/Layout/index.js +13 -8
- package/es/table/components/LoadMore/index.js +3 -0
- package/es/table/components/Pagination/index.js +12 -10
- package/es/table/components/QuickAction/index.js +3 -2
- package/es/table/components/ToolBar/CardSwitch.js +2 -0
- package/es/table/components/ToolBar/DensityIcon.js +7 -2
- package/es/table/components/ToolBar/FilterColumnIcon.js +9 -0
- package/es/table/components/ToolBar/FullScreenIcon.js +1 -0
- package/es/table/components/ToolBar/Fullscreen.js +3 -0
- package/es/table/components/ToolBar/RefreshIcon.js +11 -0
- package/es/table/components/ToolBar/index.js +13 -10
- package/es/table/index.js +138 -51
- package/es/table/index.scss +26 -0
- package/es/table/utils/columnRender.js +78 -27
- package/es/table/utils/genAutoWidthColumns.js +340 -0
- package/es/table/utils/index.js +6 -0
- package/es/table/utils/pureColumnRender.js +9 -1
- package/es/templates/List/index.js +4 -6
- package/es/templates/index.js +2 -1
- package/es/timeline/ProTimeLineItem/index.js +8 -4
- package/es/timeline/index.js +5 -5
- package/es/utils/message.js +3 -5
- package/es/xconsole.scss +23 -0
- package/lib/form/Filter/index.scss +1 -0
- package/lib/form/Filter/index2.scss +1 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/table/components/CardView/index.js +5 -10
- package/lib/table/components/ToolBar/index.js +10 -7
- package/lib/table/index.js +72 -25
- package/lib/table/index.scss +26 -0
- package/lib/table/typing.d.ts +11 -1
- package/lib/table/utils/columnRender.d.ts +1 -0
- package/lib/table/utils/columnRender.js +51 -4
- package/lib/table/utils/genAutoWidthColumns.d.ts +35 -0
- package/lib/table/utils/genAutoWidthColumns.js +345 -0
- package/lib/xconsole.scss +23 -0
- package/package.json +1 -1
- package/es/actions/base.d.ts +0 -24
- package/es/actions/confirm.d.ts +0 -7
- package/es/actions/danger-confirm.d.ts +0 -7
- package/es/actions/danger-pop-confirm.d.ts +0 -5
- package/es/actions/dialog-component.d.ts +0 -10
- package/es/actions/dialog-form.d.ts +0 -29
- package/es/actions/dialog-info.d.ts +0 -9
- package/es/actions/dialog-table.d.ts +0 -9
- package/es/actions/dialog.d.ts +0 -40
- package/es/actions/drawer-form.d.ts +0 -6
- package/es/actions/drawer-info.d.ts +0 -6
- package/es/actions/drawer-table.d.ts +0 -6
- package/es/actions/drawer.d.ts +0 -6
- package/es/actions/error.d.ts +0 -7
- package/es/actions/index.d.ts +0 -114
- package/es/actions/link.d.ts +0 -8
- package/es/actions/notice.d.ts +0 -7
- package/es/actions/pop-confirm.d.ts +0 -9
- package/es/actions/quick.d.ts +0 -2
- package/es/actions/request.d.ts +0 -9
- package/es/actions/utils.d.ts +0 -1
- package/es/card/card-container.d.ts +0 -18
- package/es/card/divider.d.ts +0 -6
- package/es/card/index.d.ts +0 -109
- package/es/card/selectable.d.ts +0 -13
- package/es/card/tab.d.ts +0 -6
- package/es/card/utils.d.ts +0 -9
- package/es/field/index.d.ts +0 -3
- package/es/form/Components/Editable/index.d.ts +0 -20
- package/es/form/Components/FormGroup/index.d.ts +0 -14
- package/es/form/Components/LightFilter/componentMap.d.ts +0 -3
- package/es/form/Components/LightFilter/index.d.ts +0 -17
- package/es/form/Components/ProField/index.d.ts +0 -2
- package/es/form/Components/ProField/mapDateFormat.d.ts +0 -3
- package/es/form/Components/Text/index.d.ts +0 -8
- package/es/form/Filter/AdvancedFilter.d.ts +0 -7
- package/es/form/Filter/Layout.d.ts +0 -5
- package/es/form/Filter/LightFilter.d.ts +0 -7
- package/es/form/Filter/SimpleFilter.d.ts +0 -7
- package/es/form/Filter/index.d.ts +0 -9
- package/es/form/Filter/index2.d.ts +0 -13
- package/es/form/Filter/useBindUrl.d.ts +0 -2
- package/es/form/Filter/useSpecialProps.d.ts +0 -6
- package/es/form/ProForm/addCascadeEffect.d.ts +0 -2
- package/es/form/ProForm/customComponent.d.ts +0 -3
- package/es/form/ProForm/index.d.ts +0 -5
- package/es/form/ProForm/useAutoLayout.d.ts +0 -9
- package/es/form/ProForm/useAutoSubmit.d.ts +0 -6
- package/es/form/ProForm/useFieldRequest.d.ts +0 -5
- package/es/form/ProForm/useFormDisplayValues.d.ts +0 -4
- package/es/form/ProForm/useInitialRequest.d.ts +0 -6
- package/es/form/SchemaForm/adapterComponent.d.ts +0 -5
- package/es/form/SchemaForm/adapterDecorator.d.ts +0 -6
- package/es/form/SchemaForm/adapterType.d.ts +0 -5
- package/es/form/SchemaForm/index.d.ts +0 -4
- package/es/form/SchemaForm/initializeArrayCards.d.ts +0 -3
- package/es/form/SchemaForm/initializeArrayCollapse.d.ts +0 -3
- package/es/form/SchemaForm/initializeArrayItems.d.ts +0 -3
- package/es/form/SchemaForm/initializeArrayTable.d.ts +0 -3
- package/es/form/SchemaForm/initializeDataSource.d.ts +0 -15
- package/es/form/SchemaForm/initializeFormButton.d.ts +0 -3
- package/es/form/SchemaForm/initializeFormCollapse.d.ts +0 -3
- package/es/form/SchemaForm/initializeFormGroup.d.ts +0 -3
- package/es/form/SchemaForm/initializeFormStep.d.ts +0 -5
- package/es/form/SchemaForm/initializeFormTab.d.ts +0 -3
- package/es/form/SchemaForm/initializeReactions.d.ts +0 -2
- package/es/form/SchemaForm/initializeRequest.d.ts +0 -11
- package/es/form/SchemaForm/initializeRules.d.ts +0 -11
- package/es/form/SchemaForm/initializeSelectTable.d.ts +0 -3
- package/es/form/SchemaForm/reactions.d.ts +0 -6
- package/es/form/docs/ActionResponse.d.ts +0 -8
- package/es/form/fieldTypeMap.d.ts +0 -7
- package/es/form/index.d.ts +0 -125
- package/es/form/locales/validate.d.ts +0 -159
- package/es/form/schemaNameMap.d.ts +0 -5
- package/es/form/typing.d.ts +0 -194
- package/es/form/utils.d.ts +0 -55
- package/es/form/warning.d.ts +0 -3
- package/es/hooks/index.d.ts +0 -2
- package/es/index-without-icon.d.ts +0 -32
- package/es/index.d.ts +0 -32
- package/es/info/components/InfoGroup/index.d.ts +0 -5
- package/es/info/components/InfoValueItem/index.d.ts +0 -5
- package/es/info/components/ProInfoItem/index.d.ts +0 -5
- package/es/info/components/baseInfo/index.d.ts +0 -8
- package/es/info/components/headerInfo/index.d.ts +0 -8
- package/es/info/components/tableInfo/index.d.ts +0 -7
- package/es/info/index.d.ts +0 -10
- package/es/info/typing.d.ts +0 -220
- package/es/info/utils/index.d.ts +0 -20
- package/es/info/utils/layout.d.ts +0 -2
- package/es/info/utils/utils.d.ts +0 -1
- package/es/layout/index.d.ts +0 -2
- package/es/nocode/configurators/Card.d.ts +0 -3
- package/es/nocode/configurators/PageHeader.d.ts +0 -3
- package/es/nocode/configurators/ProTable.d.ts +0 -3
- package/es/nocode/configurators/common.d.ts +0 -280
- package/es/nocode/configurators/index.d.ts +0 -15
- package/es/nocode/configurators/map.d.ts +0 -2
- package/es/nocode/index.d.ts +0 -8
- package/es/nocode/pages/editor.d.ts +0 -12
- package/es/nocode/pages/index.d.ts +0 -14
- package/es/nocode/pages/playground.d.ts +0 -11
- package/es/nocode/pages/renderer.d.ts +0 -10
- package/es/nocode/playground.d.ts +0 -14
- package/es/page-container/index.d.ts +0 -3
- package/es/page-header/index.d.ts +0 -74
- package/es/sidebar/components/sidebar-container/index.d.ts +0 -5
- package/es/sidebar/components/tree/index.d.ts +0 -6
- package/es/sidebar/components/tree-node/components/HoverTooltip/index.d.ts +0 -15
- package/es/sidebar/components/tree-node/components/IconAction/index.d.ts +0 -12
- package/es/sidebar/components/tree-node/components/IconSwitch/index.d.ts +0 -23
- package/es/sidebar/components/tree-node/index.d.ts +0 -7
- package/es/sidebar/index.d.ts +0 -9
- package/es/sidebar/typing.d.ts +0 -141
- package/es/sidebar/utils/action-ref.d.ts +0 -3
- package/es/sidebar/utils/index.d.ts +0 -364
- package/es/skeleton/index.d.ts +0 -3
- package/es/table/components/CardView/index.d.ts +0 -5
- package/es/table/components/EmptyContent/index.d.ts +0 -2
- package/es/table/components/Filter/index.d.ts +0 -12
- package/es/table/components/Layout/index.d.ts +0 -5
- package/es/table/components/LoadMore/index.d.ts +0 -20
- package/es/table/components/Pagination/index.d.ts +0 -7
- package/es/table/components/QuickAction/index.d.ts +0 -11
- package/es/table/components/ToolBar/CardSwitch.d.ts +0 -8
- package/es/table/components/ToolBar/DensityIcon.d.ts +0 -4
- package/es/table/components/ToolBar/FilterColumnIcon.d.ts +0 -4
- package/es/table/components/ToolBar/FullScreenIcon.d.ts +0 -4
- package/es/table/components/ToolBar/Fullscreen.d.ts +0 -10
- package/es/table/components/ToolBar/RefreshIcon.d.ts +0 -4
- package/es/table/components/ToolBar/index.d.ts +0 -5
- package/es/table/index.d.ts +0 -5
- package/es/table/typing.d.ts +0 -418
- package/es/table/utils/columnRender.d.ts +0 -13
- package/es/table/utils/genProColumnToColumn.d.ts +0 -13
- package/es/table/utils/getTableProps.d.ts +0 -2
- package/es/table/utils/getTableSortIcons.d.ts +0 -3
- package/es/table/utils/index.d.ts +0 -19
- package/es/table/utils/pureColumnRender.d.ts +0 -9
- package/es/table/utils/pureGenProColumnToColumn.d.ts +0 -7
- package/es/table/utils/useTableSelection.d.ts +0 -3
- package/es/table/utils/util.d.ts +0 -5
- package/es/templates/Detail/index.d.ts +0 -2
- package/es/templates/Form/index.d.ts +0 -2
- package/es/templates/List/index.d.ts +0 -9
- package/es/templates/index.d.ts +0 -3
- package/es/timeline/ProTimeLineItem/index.d.ts +0 -5
- package/es/timeline/index.d.ts +0 -10
- package/es/timeline/typing.d.ts +0 -107
- package/es/utils/index.d.ts +0 -3
- package/es/utils/message.d.ts +0 -3
@@ -1,14 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { PageProps } from '../../page-container';
|
3
|
-
export * from './editor';
|
4
|
-
export * from './playground';
|
5
|
-
export * from './renderer';
|
6
|
-
export declare type PageType = 'LIST' | 'DETAIL' | 'FORM' | string;
|
7
|
-
export declare type PageMap = {
|
8
|
-
[key in PageType]: React.FC<PageProps>;
|
9
|
-
};
|
10
|
-
export declare const PageMap: PageMap;
|
11
|
-
export declare type PageDefaultInitialValues = {
|
12
|
-
[key in PageType]: any;
|
13
|
-
};
|
14
|
-
export declare const PageDefaultInitialValues: PageDefaultInitialValues;
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { PageProps } from '../../page-container';
|
3
|
-
import { ConfiguratorMap } from '../configurators';
|
4
|
-
interface PagePlayGroundProps<T = any> {
|
5
|
-
initialValues: T;
|
6
|
-
page: React.FC<PageProps<T>>;
|
7
|
-
onValuesChange?: (values: any) => void;
|
8
|
-
configuratorMap?: ConfiguratorMap;
|
9
|
-
}
|
10
|
-
export declare const PagePlayground: (props: PagePlayGroundProps) => JSX.Element;
|
11
|
-
export {};
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import { PageProps } from '../../page-container';
|
2
|
-
import { PageMap } from '.';
|
3
|
-
export interface PageRendererProps<T = any> extends PageProps<T> {
|
4
|
-
type?: any;
|
5
|
-
error?: any;
|
6
|
-
title?: string;
|
7
|
-
pageMap?: PageMap;
|
8
|
-
}
|
9
|
-
export declare const PageRenderer: (props: PageRendererProps) => JSX.Element;
|
10
|
-
export default PageRenderer;
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { Configurator } from './configurators';
|
3
|
-
export interface PlayGroundLayoutProps {
|
4
|
-
component: React.ReactNode;
|
5
|
-
configurator: React.ReactNode;
|
6
|
-
tools?: React.ReactNode;
|
7
|
-
}
|
8
|
-
export declare const PlayGroundLayout: (props: PlayGroundLayoutProps) => JSX.Element;
|
9
|
-
export interface PlayGround<T = any> {
|
10
|
-
component: React.FC<T>;
|
11
|
-
configurator: Configurator;
|
12
|
-
initialValues: T;
|
13
|
-
}
|
14
|
-
export declare const PlayGround: <T extends {}>(props: PlayGround<T>) => JSX.Element;
|
@@ -1,74 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { ItemProps } from '@alicloudfe/components/types/breadcrumb';
|
3
|
-
import { LinkPath } from '@teamix/utils';
|
4
|
-
import { CapsuleTabType, ProTagItem } from '../field';
|
5
|
-
import { ProActionGroupProps } from '../actions';
|
6
|
-
import { ProInfoProps } from '../info';
|
7
|
-
import './index.scss';
|
8
|
-
export interface ProPageHeaderBreadcrumbItem extends ItemProps {
|
9
|
-
/**
|
10
|
-
* @deprecated 建议使用 children 代替
|
11
|
-
*/
|
12
|
-
text?: string;
|
13
|
-
}
|
14
|
-
export declare type ProPageHeaderTagItem = ProTagItem;
|
15
|
-
declare type Color = 'blue' | 'green' | 'orange' | 'red' | 'yellow' | string;
|
16
|
-
export declare type ProPageHeaderDataItem = {
|
17
|
-
title: string;
|
18
|
-
num: number;
|
19
|
-
color?: Color;
|
20
|
-
} & React.HTMLAttributes<HTMLElement>;
|
21
|
-
export declare type ProPageHeaderProps = {
|
22
|
-
/** 标题 */
|
23
|
-
title?: React.ReactNode;
|
24
|
-
/** 标题说明 */
|
25
|
-
titleTooltip?: React.ReactNode;
|
26
|
-
/** 描述 */
|
27
|
-
description?: React.ReactNode;
|
28
|
-
/** 图标 */
|
29
|
-
icon?: React.ReactNode;
|
30
|
-
/** 图标颜色 */
|
31
|
-
iconColor?: Color;
|
32
|
-
/** 图标背景类型 */
|
33
|
-
iconBackgroundType?: 'circle' | 'square';
|
34
|
-
/** 图标背景色 */
|
35
|
-
iconBackgroundColor?: Color;
|
36
|
-
/** 返回按钮配置 */
|
37
|
-
goback?: boolean | LinkPath | ((e: React.MouseEvent) => void);
|
38
|
-
/** 背景图 */
|
39
|
-
image?: string;
|
40
|
-
/** 加载中 */
|
41
|
-
loading?: boolean;
|
42
|
-
/** 面包屑配置 */
|
43
|
-
breadcrumb?: ProPageHeaderBreadcrumbItem[];
|
44
|
-
/** 额外信息区配置 */
|
45
|
-
extra?: ProActionGroupProps | React.ReactNode | any[];
|
46
|
-
/** 操作区配置 */
|
47
|
-
operation?: ProActionGroupProps | React.ReactNode | any[];
|
48
|
-
/** 标签组 */
|
49
|
-
tags?: ProPageHeaderTagItem[];
|
50
|
-
/** 数据概览项 */
|
51
|
-
data?: ProPageHeaderDataItem[];
|
52
|
-
/** 底部详情 */
|
53
|
-
info?: ProInfoProps | React.ReactNode;
|
54
|
-
/** 切换 tabs */
|
55
|
-
tabs?: CapsuleTabType;
|
56
|
-
} & Omit<React.HTMLAttributes<HTMLElement>, 'title'>;
|
57
|
-
declare const ProPageHeader: React.FC<ProPageHeaderProps>;
|
58
|
-
export default ProPageHeader;
|
59
|
-
/**
|
60
|
-
* @deprecated 建议使用 ProPageHeaderBreadcrumbItem 代替
|
61
|
-
*/
|
62
|
-
export declare type BreadcrumbItem = ProPageHeaderBreadcrumbItem;
|
63
|
-
/**
|
64
|
-
* @deprecated 建议使用 ProPageHeaderTagItem 代替
|
65
|
-
*/
|
66
|
-
export declare type TagItem = ProPageHeaderTagItem;
|
67
|
-
/**
|
68
|
-
* @deprecated 建议使用 ProPageHeaderDataItem 代替
|
69
|
-
*/
|
70
|
-
export declare type DataItem = ProPageHeaderDataItem;
|
71
|
-
/**
|
72
|
-
* @deprecated 建议使用 ProPageHeaderProps 代替
|
73
|
-
*/
|
74
|
-
export declare type PageHeaderProps = ProPageHeaderProps;
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import { TooltipProps } from '@alicloudfe/components/types/balloon';
|
2
|
-
import React from 'react';
|
3
|
-
import './index.scss';
|
4
|
-
export declare type ProHoverTooltipProps = {
|
5
|
-
/** 触发器 */
|
6
|
-
trigger?: React.ReactNode;
|
7
|
-
/** 显示隐藏 */
|
8
|
-
visible?: boolean;
|
9
|
-
/** tooltip */
|
10
|
-
tooltip?: React.ReactNode;
|
11
|
-
/** tooltip 配置 */
|
12
|
-
tooltipProps?: TooltipProps;
|
13
|
-
} & React.HTMLAttributes<HTMLElement>;
|
14
|
-
declare const ProHoverTooltip: React.FC<ProHoverTooltipProps>;
|
15
|
-
export default ProHoverTooltip;
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import { ProActionConfig } from '../../../../..';
|
2
|
-
import React from 'react';
|
3
|
-
import './index.scss';
|
4
|
-
export declare type ProIconActionProps = {
|
5
|
-
trigger: React.ReactNode;
|
6
|
-
icon: React.ReactNode;
|
7
|
-
action: ProActionConfig;
|
8
|
-
visible?: boolean;
|
9
|
-
tooltip?: React.ReactNode;
|
10
|
-
};
|
11
|
-
declare const ProIconAction: React.FC<ProIconActionProps>;
|
12
|
-
export default ProIconAction;
|
@@ -1,23 +0,0 @@
|
|
1
|
-
import { TooltipProps } from '@alicloudfe/components/types/balloon';
|
2
|
-
import React from 'react';
|
3
|
-
import './index.scss';
|
4
|
-
export declare type ProIconSwitchProps = {
|
5
|
-
/** 默认状态 */
|
6
|
-
visible?: boolean;
|
7
|
-
/** tooltip 显示隐藏 */
|
8
|
-
tooltipVisible?: boolean;
|
9
|
-
/** 未激活状态下的icon */
|
10
|
-
icon?: React.ReactNode;
|
11
|
-
/** 激活状态下的 icon */
|
12
|
-
activeIcon?: React.ReactNode;
|
13
|
-
/** tooltip */
|
14
|
-
tooltip?: React.ReactNode;
|
15
|
-
/** cancelTooltip */
|
16
|
-
cancelTooltip?: React.ReactNode;
|
17
|
-
/** tooltip 配置 */
|
18
|
-
tooltipProps?: TooltipProps;
|
19
|
-
/** 状态改变的回调 */
|
20
|
-
onChange?: (state: boolean) => void;
|
21
|
-
};
|
22
|
-
declare const ProIconSwitch: React.FC<ProIconSwitchProps>;
|
23
|
-
export default ProIconSwitch;
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { ProSidebarDataSource, ProSidebarDataSourceItem } from '../../typing';
|
3
|
-
import { ProSidebarProps } from '../..';
|
4
|
-
declare const ProSideBarTreeNode: React.FC<ProSidebarDataSourceItem>;
|
5
|
-
export declare function renderTreeNode(data: ProSidebarDataSource): JSX.Element[];
|
6
|
-
export declare function renderTreeNodeDependenceValue(data: ProSidebarDataSource, onBeforeRenderNodeEvent: ProSidebarProps['onBeforeRenderNodeEvent'], checkedKeys: any[], selectedKeys: any[], allData?: ProSidebarDataSource): JSX.Element[];
|
7
|
-
export default ProSideBarTreeNode;
|
package/es/sidebar/index.d.ts
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import './index.scss';
|
3
|
-
import { ProSidebarProps } from './typing';
|
4
|
-
export * from './typing';
|
5
|
-
export * from './utils';
|
6
|
-
import ProIconSwitch from './components/tree-node/components/IconSwitch';
|
7
|
-
declare const ProSidebar: React.FC<ProSidebarProps>;
|
8
|
-
export default ProSidebar;
|
9
|
-
export { ProIconSwitch };
|
package/es/sidebar/typing.d.ts
DELETED
@@ -1,141 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { MessageProps } from '@alifd/next/types/message';
|
3
|
-
import { NodeProps, TreeProps } from '@alifd/next/types/tree';
|
4
|
-
import { CommonRequestConfig } from '@teamix/utils';
|
5
|
-
import { ProTagItem } from '../field';
|
6
|
-
import { ProActionConfig, ProCardProps, ProFieldProps, ProFieldRenderProps, ProFieldType } from '..';
|
7
|
-
/** ProSidebar 定义 */
|
8
|
-
export declare type ProSidebarProps = {
|
9
|
-
/** 数据源 */
|
10
|
-
dataSource?: ProSidebarDataSource;
|
11
|
-
/** 点击的节点 */
|
12
|
-
selectedKeys?: TreeProps['selectedKeys'];
|
13
|
-
/** 选中的节点 */
|
14
|
-
checkedKeys?: TreeProps['checkedKeys'];
|
15
|
-
/** 节点点击回调 */
|
16
|
-
onSelect?: TreeProps['onSelect'];
|
17
|
-
/** 节点选中回调 */
|
18
|
-
onCheck?: TreeProps['onCheck'];
|
19
|
-
/** 树配置 */
|
20
|
-
treeProps?: TreeProps;
|
21
|
-
/** 卡片配置 */
|
22
|
-
cardProps?: ProCardProps;
|
23
|
-
/** 显示数量 */
|
24
|
-
showExtraNumber?: boolean;
|
25
|
-
/** actionRef */
|
26
|
-
actionRef?: React.MutableRefObject<ProSidebarActionType | undefined>;
|
27
|
-
/** 渲染树节点之前的回调 dataSource 变动时调用 */
|
28
|
-
beforeRenderNode?: (item: ProSidebarDataSourceItem, level: number, dataSource: ProSidebarDataSource) => ProSidebarDataSourceItem;
|
29
|
-
/** 监听渲染树节点之前的事件 当节点状态改变、dataSource 变动时调用 */
|
30
|
-
onBeforeRenderNodeEvent?: (item: ProSidebarDataSourceItem, checkedKeys: TreeProps['checkedKeys'], selectedKeys: TreeProps['selectedKeys'], dataSource: ProSidebarDataSource) => ProSidebarDataSourceItem;
|
31
|
-
} & Omit<React.HTMLAttributes<HTMLElement>, 'onSelect'> & Omit<ProSidebarContainerProps, 'onSelect'> & ProSidebarRequestProps;
|
32
|
-
/** 数据源定义 */
|
33
|
-
export declare type ProSidebarDataSource = ProSidebarDataSourceItem[];
|
34
|
-
export declare type ProSidebarDataSourceItem = {
|
35
|
-
/** 展示值 */
|
36
|
-
label?: string;
|
37
|
-
/** 绑定值 */
|
38
|
-
value?: any;
|
39
|
-
/** 标签 */
|
40
|
-
tag?: ProTagItem;
|
41
|
-
/** 右侧操作、状态区 */
|
42
|
-
extra?: ProSidebarExtraProps;
|
43
|
-
/** 子项 */
|
44
|
-
children?: ProSidebarDataSourceItem[];
|
45
|
-
/** label 类型 对应 ProFieldType */
|
46
|
-
valueType?: ProFieldType;
|
47
|
-
/** 渲染 label 的 render 对应 ProFieldRenderProps */
|
48
|
-
render?: ProFieldRenderProps;
|
49
|
-
/** ProField 的其他配置项 */
|
50
|
-
fieldProps?: ProFieldProps;
|
51
|
-
/** TreeNode 的其他配置项 */
|
52
|
-
treeNodeProps?: ProFieldProps;
|
53
|
-
} & NodeProps;
|
54
|
-
/** 单项 extra 配置项 */
|
55
|
-
export declare type ProSidebarExtraProps = React.ReactNode | (ProSidebarExtraPropsItem | React.ReactNode)[];
|
56
|
-
export declare type ProSidebarExtraPropsItem = {
|
57
|
-
/** 相应功能项 */
|
58
|
-
type: 'action' | 'iconSwitch' | 'iconAction' | 'custom';
|
59
|
-
/** action 相应配置 */
|
60
|
-
action: ProActionConfig;
|
61
|
-
/** 相应配置 */
|
62
|
-
props: any;
|
63
|
-
/** 是否 hover 显示 */
|
64
|
-
hover?: boolean;
|
65
|
-
/** 自定义渲染 仅在 custom 有效 */
|
66
|
-
trigger?: any;
|
67
|
-
};
|
68
|
-
/** sidebar 容器定义 */
|
69
|
-
export declare type ProSidebarContainerProps = {
|
70
|
-
children?: React.ReactNode;
|
71
|
-
/** 搜索输入提示 */
|
72
|
-
searchPlaceholder?: string;
|
73
|
-
/** 搜索输入其他参数 ProField 参数 */
|
74
|
-
searchProps?: ProFieldProps;
|
75
|
-
/** 是否展示搜索框 */
|
76
|
-
showSearch?: boolean;
|
77
|
-
/** 自定义搜索 */
|
78
|
-
customSearch?: React.ReactNode;
|
79
|
-
/** 搜索框变化的回调函数 */
|
80
|
-
searchOnChange?: (value: any) => void;
|
81
|
-
/** 通知提示消息区域 */
|
82
|
-
message?: React.ReactNode;
|
83
|
-
/** 自定义消息通知区域 */
|
84
|
-
customMessage?: React.ReactNode;
|
85
|
-
/** 消息通知区域的其他参数 */
|
86
|
-
messageProps?: MessageProps;
|
87
|
-
/** 滚动区域 仅在使用 ProPageContainer 时有效 */
|
88
|
-
scrollArea?: 'all' | 'tree';
|
89
|
-
/** 是否显示展开全部 */
|
90
|
-
showExpandAll?: boolean;
|
91
|
-
/** 展开全部 状态 */
|
92
|
-
expandAllState?: boolean;
|
93
|
-
/** 是否显示展开层级 */
|
94
|
-
showExpandLevel?: boolean;
|
95
|
-
/** 展开全部变化回调 */
|
96
|
-
onExpandAllChange?: (state: boolean) => void;
|
97
|
-
/** 展开层级变化回调 */
|
98
|
-
onExpandLevelChange?: (state: number) => void;
|
99
|
-
/** 展开层级 层级 */
|
100
|
-
expandLevel?: number;
|
101
|
-
/** 展开层级 当前所展示层级 */
|
102
|
-
expandLevelState?: number;
|
103
|
-
/** 列表 or tree */
|
104
|
-
isTree?: boolean;
|
105
|
-
} & ProCardProps;
|
106
|
-
/** ProSidebarTree 内容定义 */
|
107
|
-
export declare type ProSidebarTreeProps = {
|
108
|
-
dataSource?: ProSidebarDataSource;
|
109
|
-
/** 搜索过滤关键词 */
|
110
|
-
searchKey?: string;
|
111
|
-
/** 显示数量 */
|
112
|
-
showExtraNumber?: ProSidebarProps['showExtraNumber'];
|
113
|
-
/** actionRef */
|
114
|
-
actionRef: React.MutableRefObject<ProSidebarActionType | undefined>;
|
115
|
-
/** 渲染树节点之前的回调 */
|
116
|
-
onBeforeRenderNodeEvent?: ProSidebarProps['onBeforeRenderNodeEvent'];
|
117
|
-
/** 渲染树节点之前的回调 dataSource 变动时调用 */
|
118
|
-
beforeRenderNode?: ProSidebarProps['beforeRenderNode'];
|
119
|
-
/** 展开全部 */
|
120
|
-
expandAll?: boolean;
|
121
|
-
/** 展开节点层级 */
|
122
|
-
expandLevel?: number;
|
123
|
-
/** dataSource 变化的回调 */
|
124
|
-
onDataSourceChange?: (dataSource: ProSidebarDataSource) => void;
|
125
|
-
} & TreeProps;
|
126
|
-
/** ProSidebarTreeNode 内容定义 */
|
127
|
-
export declare type ProSidebarTreeNodeProps = {
|
128
|
-
dataSource?: ProSidebarDataSource;
|
129
|
-
};
|
130
|
-
/** ProSidebar ActionRef 定义 */
|
131
|
-
export declare type ProSidebarActionType = {
|
132
|
-
/** 设置树节点 */
|
133
|
-
setTreeNode?: (treeNode: ProSidebarDataSourceItem) => void;
|
134
|
-
/** 刷新 */
|
135
|
-
refresh?: () => void;
|
136
|
-
};
|
137
|
-
/** ProSidebar 请求相关定义 */
|
138
|
-
export declare type ProSidebarRequestProps = {
|
139
|
-
/** 请求地址 */
|
140
|
-
url?: string;
|
141
|
-
} & Omit<CommonRequestConfig, 'url'>;
|