@teamix/pro 1.5.16 → 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
package/es/table/typing.d.ts
DELETED
@@ -1,418 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* ProTable 类型定义
|
3
|
-
*/
|
4
|
-
import { ColumnProps, TableProps } from '@alicloudfe/components/types/table';
|
5
|
-
import { ProFieldType, ProFieldRenderProps, ProFieldDataSourceItem, EmptyContentProps } from '../field';
|
6
|
-
import { QueryFilterProps, ProFormType } from '../form';
|
7
|
-
import { ProActionGroupProps, ProActionButtonProps } from '../actions';
|
8
|
-
import { PaginationProps } from '@alicloudfe/components/types/pagination';
|
9
|
-
import { HeaderProps as ProTableHeaderProps } from '../field';
|
10
|
-
import { Method, AxiosRequestConfig } from 'axios';
|
11
|
-
import React from 'react';
|
12
|
-
import { ProCardProps } from '../card';
|
13
|
-
declare type IFieldRenderProps = keyof ProFieldRenderProps;
|
14
|
-
/** 列record函数 */
|
15
|
-
declare type ProTableCellFunProp = (value: any, index: number, record: any, ...others: any) => any;
|
16
|
-
declare type ITableCellRender = {
|
17
|
-
[key in IFieldRenderProps]?: ProFieldRenderProps[key] | ProTableCellFunProp;
|
18
|
-
} | ((...other: any) => React.ReactNode);
|
19
|
-
declare type TDataService = {
|
20
|
-
/** 翻页器总数 */
|
21
|
-
total?: string | number;
|
22
|
-
/** 表格数据 */
|
23
|
-
data?: any;
|
24
|
-
};
|
25
|
-
export declare type responsivePaginationType = 'mini' | 'small' | 'simple' | 'normal';
|
26
|
-
export declare type ProTableColumnProps = {
|
27
|
-
/**
|
28
|
-
* 会在 title 之后展示一个 icon,hover 之后提示一些信息
|
29
|
-
*/
|
30
|
-
tooltip?: string;
|
31
|
-
/**
|
32
|
-
* title 之后展示一个 icon 设置,可传 TeamixIcon 对应的 type,也可以是自定义 Icon
|
33
|
-
*/
|
34
|
-
tooltipIcon?: React.ReactNode;
|
35
|
-
/** 对应 ProField 里面的 type */
|
36
|
-
valueType?: ProFieldType;
|
37
|
-
/** 是否隐藏表格列,列配置也不显示 */
|
38
|
-
hidden?: boolean;
|
39
|
-
/** 【列配置】是否默认隐藏表格列,但列配置显示 */
|
40
|
-
columnFilters?: boolean;
|
41
|
-
/** 【列配置】是否禁用隐藏列 */
|
42
|
-
columnFiltersDisabled?: boolean;
|
43
|
-
/** 渲染单元格内容字段 */
|
44
|
-
render?: ITableCellRender;
|
45
|
-
/** 枚举值 */
|
46
|
-
dataSource?: ProFieldDataSourceItem[] | ProTableCellFunProp;
|
47
|
-
/** 表头的过滤菜单项,当值为 true 时,自动使用 dataSource 生成 */
|
48
|
-
filters?: boolean | ProTableColumnsFilterItemProps[];
|
49
|
-
/** 表头的过滤菜单项过滤方式 single 单选 multiple 多选 */
|
50
|
-
filtersMode?: 'single' | 'multiple';
|
51
|
-
/** 表头的过滤菜单项在搜索之前的参数操作 */
|
52
|
-
beforeFilter?: (rules: string[]) => string;
|
53
|
-
/** 表头的过滤菜单宽度 */
|
54
|
-
filtersWidth?: string | number;
|
55
|
-
/** 操作组配置 */
|
56
|
-
actionSchema?: ProActionGroupProps;
|
57
|
-
/** 指定列对应的字段,支持`a.b`形式的快速取值 和 数组取值 */
|
58
|
-
dataIndex?: string | string[];
|
59
|
-
/** 指定 valueType 为日期时间格式时,可以格式化日期时间 */
|
60
|
-
format?: string;
|
61
|
-
/** 多级表头 **/
|
62
|
-
children?: ProTableColumnProps[];
|
63
|
-
/** ProField 其他配置项 */
|
64
|
-
props?: any;
|
65
|
-
} & Omit<ColumnProps, 'filters' | 'dataIndex' | 'filtersMode' | 'children'>;
|
66
|
-
export declare type ProColumnProps = ProTableColumnProps;
|
67
|
-
export declare type ProTableProps = {
|
68
|
-
/** ProColums 定义,取代 Table 的 columns */
|
69
|
-
columns: ProTableColumnProps[];
|
70
|
-
/** 请求地址 */
|
71
|
-
url?: string;
|
72
|
-
/** 请求方法 */
|
73
|
-
method?: Method;
|
74
|
-
/** 请求参数 */
|
75
|
-
params?: {
|
76
|
-
[propName: string]: any;
|
77
|
-
};
|
78
|
-
/** sort 排序请求参数处理函数 */
|
79
|
-
formatSort?: (sort: object) => object;
|
80
|
-
/** 如需自定义调用参数格式,则可以设定此值在请求前对 params 进行自定义,如果返回false则可以阻止请求 */
|
81
|
-
formatParams?: ((params: any) => typeof params) | string;
|
82
|
-
/** 对返回值的 data,total 进行映射处理 */
|
83
|
-
formatResult?: TDataService | ((res: any) => TDataService) | string;
|
84
|
-
/** 请求成功后经过 formatResult 转换后的回调 */
|
85
|
-
onFormatResult?: (data: any[]) => void;
|
86
|
-
/** 是否第一次加载时就发起请求 */
|
87
|
-
requestWhenMount?: boolean;
|
88
|
-
/** 内部请求每次成功后的回调 */
|
89
|
-
onSuccess?: (res: any) => void;
|
90
|
-
/** 内部请求失败时的回调 */
|
91
|
-
onError?: (error: Error) => void;
|
92
|
-
/** 自定义的请求配置 */
|
93
|
-
requestConfig?: AxiosRequestConfig;
|
94
|
-
/** 翻页页数的请求参数名 */
|
95
|
-
pageKey?: string;
|
96
|
-
/** 翻页器页数对应字段 */
|
97
|
-
pageSizeKey?: string;
|
98
|
-
/** 翻页器每页显示的条数 */
|
99
|
-
pageSize?: number;
|
100
|
-
/** 每页显示选择器可选值 */
|
101
|
-
pageSizeList?: PaginationProps['pageSizeList'];
|
102
|
-
/** 透传给翻页器的属性 */
|
103
|
-
paginationProps?: PaginationProps;
|
104
|
-
/** 是否显示翻页器 */
|
105
|
-
showPagination?: boolean;
|
106
|
-
/** 手动指定响应式翻页器的 type */
|
107
|
-
responsivePaginationType?: responsivePaginationType;
|
108
|
-
/** 是否使用内置的 rowSelection */
|
109
|
-
useRowSelection?: boolean;
|
110
|
-
/** 内置 rowSelection 变化时的回调 */
|
111
|
-
onChangeRowSelection?: (selectedRowKeys: string[]) => void;
|
112
|
-
/** 获取内置 rowSelection */
|
113
|
-
getRowSelection?: (rowSelection: innerRowSelectionType) => void;
|
114
|
-
/** 表格底部(左侧)配置 */
|
115
|
-
footerAction?: ProActionGroupProps | React.ReactNode;
|
116
|
-
/** 表格底部(右层)配置 */
|
117
|
-
footer?: React.ReactNode;
|
118
|
-
/**
|
119
|
-
* @deprecated 已废弃 建议用 dataFilter 中的 filterDebounce 代替
|
120
|
-
* 筛选区自动搜索的防抖时间(毫秒)
|
121
|
-
*/
|
122
|
-
filterDebounce?: number;
|
123
|
-
/** ProTable action 的引用,便于手动触发一些方法 */
|
124
|
-
actionRef?: React.MutableRefObject<ProTableActionType | undefined>;
|
125
|
-
/** 是否首次加载渲染骨架屏 */
|
126
|
-
showSkeleton?: boolean;
|
127
|
-
/** 渲染骨架屏条数 */
|
128
|
-
skeletonSize?: number;
|
129
|
-
/** 表格主题 className */
|
130
|
-
tableClassName?: string;
|
131
|
-
/** 非全屏模式下是否吸底 默认状态下取用 ProPageContainer 作为参照物。如果传入了 Dom,则取用 Dom 作为参照物 */
|
132
|
-
footerSuction?: boolean | Element;
|
133
|
-
/** 当满足条件时开启自动刷新,返回值为自动刷新间隔时间,如果返回 0 或 false 则停止自动刷新,每次触发翻页、搜索都将重置时间 */
|
134
|
-
autoRefresh?: ((dataSource: any[]) => number | boolean) | boolean;
|
135
|
-
/** 自动刷新配置 */
|
136
|
-
autoRefreshProps?: {
|
137
|
-
/** 可选间隔列表 **/
|
138
|
-
dataSource?: {
|
139
|
-
label?: React.ReactNode;
|
140
|
-
value?: number;
|
141
|
-
}[];
|
142
|
-
};
|
143
|
-
/** 自定义请求方法,必需返回 success,data 字段,如果需要手动分页 total 也是必需的 */
|
144
|
-
customRequest?: (params: any) => Promise<{
|
145
|
-
success: boolean;
|
146
|
-
data: any[];
|
147
|
-
total?: number;
|
148
|
-
}>;
|
149
|
-
/** 翻页时是否保留之前批量选择数据 */
|
150
|
-
reserveSelectedRecords?: boolean;
|
151
|
-
/** 默认漏斗过滤条件 */
|
152
|
-
defaultFilterParams?: {
|
153
|
-
[key: string]: any[] | any;
|
154
|
-
};
|
155
|
-
/** 禁用掉批量选择中的全选 */
|
156
|
-
disableSelectAll?: boolean;
|
157
|
-
/** 接收外部传来的 context,eg: dialog-table */
|
158
|
-
context?: any;
|
159
|
-
/** 是否固定表格主体(开启后横向滚动条会固定在底部) */
|
160
|
-
fixedTableBody?: boolean;
|
161
|
-
/** 用于埋点 */
|
162
|
-
'data-teamix-spm'?: string;
|
163
|
-
/** 是否切换卡片视角 **/
|
164
|
-
switchCardView?: boolean;
|
165
|
-
/** 卡片视角配置 **/
|
166
|
-
cardViewProps?: ProTableCardProps;
|
167
|
-
/** 默认展示维度 **/
|
168
|
-
defaultView?: 'table' | 'card';
|
169
|
-
/** 空状态配置 **/
|
170
|
-
emptyProps?: EmptyContentProps;
|
171
|
-
/** 是否绑定 url **/
|
172
|
-
bindUrl?: boolean;
|
173
|
-
/** 绑定 url 配置 **/
|
174
|
-
bindUrlProps?: ProTableBindUrlProps;
|
175
|
-
} & Omit<TableProps, 'columns'> & ProTableTopAreaProps;
|
176
|
-
export declare type rowSelectionType = {
|
177
|
-
getProps?: (record: any, index: number) => any;
|
178
|
-
onChange?: (selectedRowKeys: Array<any>, records: Array<any>) => void;
|
179
|
-
onSelect?: (selected: boolean, record: any, records: Array<any>) => void;
|
180
|
-
onSelectAll?: (selected: boolean, records: Array<any>) => void;
|
181
|
-
selectedRowKeys?: Array<any>;
|
182
|
-
selectedRecords?: any[];
|
183
|
-
mode?: 'single' | 'multiple';
|
184
|
-
titleProps?: () => any;
|
185
|
-
columnProps?: () => any;
|
186
|
-
titleAddons?: () => any;
|
187
|
-
};
|
188
|
-
export declare type innerRowSelectionType = {
|
189
|
-
rowSelection: rowSelectionType;
|
190
|
-
selectedRowKeys: string[];
|
191
|
-
setSelectedRowKeys: (selectedRowKeys: string[]) => void;
|
192
|
-
selectedRecords: any[];
|
193
|
-
setSelectedRecords: (selectedRecords: any[]) => void;
|
194
|
-
};
|
195
|
-
export declare type ProTableActionType = {
|
196
|
-
/** 全屏展示 */
|
197
|
-
fullScreen?: () => boolean;
|
198
|
-
/** 设置显示列 */
|
199
|
-
setColumn?: (newColumns: ProColumnProps[], update?: boolean) => void;
|
200
|
-
/** 表格尺寸 */
|
201
|
-
size?: 'small' | 'medium';
|
202
|
-
/** 设置表格大小 */
|
203
|
-
setSize?: (mode: 'small' | 'medium') => void;
|
204
|
-
/** 刷新表格 */
|
205
|
-
refresh?: (params?: any) => void;
|
206
|
-
/*** 表格内部请求方法 */
|
207
|
-
request?: (params?: any) => void;
|
208
|
-
/** 重置表格 */
|
209
|
-
reset?: () => void;
|
210
|
-
/** 表格选择相关属性 */
|
211
|
-
rowSelection?: innerRowSelectionType | rowSelectionType;
|
212
|
-
/** 清空表格选择 */
|
213
|
-
clearRowSelection?: () => void;
|
214
|
-
/** 过滤 DataSource */
|
215
|
-
filterDataSource?: (dataIndex: string) => void;
|
216
|
-
/** 翻页器当前信息 */
|
217
|
-
pageInfo?: {
|
218
|
-
/** 总数 */
|
219
|
-
total?: number;
|
220
|
-
/** 当前页 */
|
221
|
-
current?: number;
|
222
|
-
/** 每页数据量 */
|
223
|
-
pageSize?: number;
|
224
|
-
/** 翻页页数的请求参数名*/
|
225
|
-
targetPageKey?: string;
|
226
|
-
/** 翻页单页数量的请求参数名 */
|
227
|
-
targetPageSizeKey?: string;
|
228
|
-
};
|
229
|
-
/** 重置翻页器为1,不发送请求 */
|
230
|
-
resetPage?: () => void;
|
231
|
-
nextPage?: () => void;
|
232
|
-
/** 获取数据过滤区表单实例 */
|
233
|
-
dataFilterForm?: ProFormType;
|
234
|
-
/** 用于在 mount 的时候获取到表单 ref */
|
235
|
-
dataFilterFormRef?: React.MutableRefObject<ProFormType>;
|
236
|
-
normalDataFilterForm?: ProFormType;
|
237
|
-
fullscreenDataFilterForm?: ProFormType;
|
238
|
-
filterEnableRef?: any;
|
239
|
-
/** 表格当前的数据 */
|
240
|
-
data?: any[];
|
241
|
-
/** 切换视角 **/
|
242
|
-
switchView?: (view: 'card' | 'table') => void;
|
243
|
-
/** 设置数据源 **/
|
244
|
-
setData?: (data: any[]) => void;
|
245
|
-
setCardViewScrollPosition?: (scrollTop: number) => void;
|
246
|
-
/** 刷新定时器间隔时间 */
|
247
|
-
setAutoRefreshTimers?: (timers: number) => void;
|
248
|
-
/** 清除刷新定时器 */
|
249
|
-
clearAutoRefreshTimers?: () => void;
|
250
|
-
} & ProTableActionTypeMutations;
|
251
|
-
/** action State 定义 */
|
252
|
-
export declare type ProTableActionTypeMutations = {
|
253
|
-
/** 获取state 状态 */
|
254
|
-
getState?: () => ProTableActionTypeState;
|
255
|
-
/** 设置state 状态 */
|
256
|
-
setState?: (key: string, value: any) => void;
|
257
|
-
/** 设置全屏状态 */
|
258
|
-
setFullScreenState?: (state: boolean) => void;
|
259
|
-
/** 绑定state监听事件 */
|
260
|
-
on?: (...args: any) => void;
|
261
|
-
/** 销毁监听事件 */
|
262
|
-
off?: (...args: any) => void;
|
263
|
-
/** 设置 列 过滤规则 */
|
264
|
-
setFilterRules?: (rules: ProTableColumnsFilterRulesItem) => void;
|
265
|
-
/** 获取 列 过滤规则 */
|
266
|
-
getFilterRules?: () => object;
|
267
|
-
/** 重新计算表格maxHeight高度 */
|
268
|
-
resetTableMaxBodyHeight?: (offset: number) => void;
|
269
|
-
/** 列筛选规则 */
|
270
|
-
filterColumns?: any[];
|
271
|
-
/** 获取所有 on 监听事件 */
|
272
|
-
getCallback?: () => any;
|
273
|
-
};
|
274
|
-
/** action Mutations 定义 */
|
275
|
-
export declare type ProTableActionTypeState = {
|
276
|
-
fullScreenState: boolean;
|
277
|
-
filterRules: ProTableColumnsFilterRulesItem;
|
278
|
-
filterColumns: ProTableColumnProps[];
|
279
|
-
[key: string]: any;
|
280
|
-
};
|
281
|
-
export declare type ProTableDataFilterProps = {
|
282
|
-
searchUndefined?: boolean;
|
283
|
-
/** 搜索时是否传入值为空字符串的参数,默认不传 */
|
284
|
-
searchEmptyString?: boolean;
|
285
|
-
/** 自定义内容 */
|
286
|
-
content?: React.ReactNode;
|
287
|
-
} & QueryFilterProps;
|
288
|
-
export declare type dataFilterProps = ProTableDataFilterProps;
|
289
|
-
export declare type ProTableTopAreaProps = {
|
290
|
-
/** 标题区 */
|
291
|
-
header?: ProTableHeaderProps;
|
292
|
-
/** 主操作区 */
|
293
|
-
mainAction?: ProActionGroupProps | React.ReactNode;
|
294
|
-
/** 工具栏区 */
|
295
|
-
toolBar?: boolean | ProTableToolBarItem[];
|
296
|
-
/** 是否开启工具栏自适应 */
|
297
|
-
toolBarAutoWidth?: boolean;
|
298
|
-
/** 快捷操作区 */
|
299
|
-
extra?: ProActionButtonProps | React.ReactNode | React.ReactNode[];
|
300
|
-
/** 数据过滤区 */
|
301
|
-
dataFilter?: ProTableDataFilterProps;
|
302
|
-
/** 数据过滤区下方自定义区域 */
|
303
|
-
afterDataFilter?: React.ReactNode;
|
304
|
-
/** 传给 QueryFilter 的 formRef */
|
305
|
-
dataFilterFormRef?: any;
|
306
|
-
/** 排序、筛选列展示状态 */
|
307
|
-
filterColumnType?: 'dialog' | 'dropdown' | 'auto';
|
308
|
-
};
|
309
|
-
/** 单个工具栏 */
|
310
|
-
export declare type ProTableToolBarItem = React.ReactNode | 'refresh' | 'density' | 'filterColumn' | 'fullscreen';
|
311
|
-
export declare type toolBarItem = ProTableToolBarItem;
|
312
|
-
export declare type ProTableLayoutProps = {
|
313
|
-
actionRef: React.MutableRefObject<ProTableActionType | undefined>;
|
314
|
-
columns?: ProTableColumnProps[];
|
315
|
-
rowSelection?: innerRowSelectionType | rowSelectionType;
|
316
|
-
fullScreenState?: boolean;
|
317
|
-
dataTeamixSpm?: string;
|
318
|
-
switchCardView?: boolean;
|
319
|
-
defaultView?: 'table' | 'card';
|
320
|
-
autoRefresh?: ProTableProps['autoRefresh'];
|
321
|
-
autoRefreshProps?: ProTableProps['autoRefreshProps'];
|
322
|
-
bindUrl?: ProTableProps['bindUrl'];
|
323
|
-
bindUrlProps?: ProTableProps['bindUrlProps'];
|
324
|
-
} & ProTableTopAreaProps;
|
325
|
-
/** columns 列过滤 */
|
326
|
-
export declare type ProTableColumnsFilterItemProps = {
|
327
|
-
/** 绑定值 */
|
328
|
-
value?: string | boolean | number;
|
329
|
-
/** 显示值 */
|
330
|
-
label?: React.ReactNode;
|
331
|
-
};
|
332
|
-
/** columns 列过滤规则 item (action ref state用) */
|
333
|
-
export declare type ProTableColumnsFilterRulesItem = {
|
334
|
-
[key: string]: {
|
335
|
-
/** 原始规则 */
|
336
|
-
rules: string[];
|
337
|
-
/** 处理过后的作为params的规则 */
|
338
|
-
params: string;
|
339
|
-
};
|
340
|
-
};
|
341
|
-
/** 非全屏模式下的吸底 useState类型定义 */
|
342
|
-
export declare type parentPositionProps = {
|
343
|
-
offsetLeft: number;
|
344
|
-
offsetRight: number;
|
345
|
-
};
|
346
|
-
/** card props **/
|
347
|
-
export declare type ProTableCardProps = {
|
348
|
-
/** 标题 dataIndex **/
|
349
|
-
title?: (ProTableColumnProps['dataIndex'] | ProTableColumnProps) | ((index: number, record: any) => ProTableColumnProps['dataIndex'] | ProTableColumnProps);
|
350
|
-
/** 副标题 dataIndex **/
|
351
|
-
subTitle?: (ProTableColumnProps['dataIndex'] | ProTableColumnProps) | ((index: number, record: any) => ProTableColumnProps['dataIndex'] | ProTableColumnProps);
|
352
|
-
/** 内容区域 dataIndex **/
|
353
|
-
content?: (ProTableColumnProps['dataIndex'] | ProTableColumnProps)[] | ((index: number, record: any) => (ProTableColumnProps['dataIndex'] | ProTableColumnProps)[]);
|
354
|
-
/** extra 区域 **/
|
355
|
-
extra?: (ProActionGroupProps | React.ReactNode | ProTableColumnProps['dataIndex'])[] | ((index: number, record: any) => (ProActionGroupProps | React.ReactNode | ProTableColumnProps['dataIndex'])[]);
|
356
|
-
/** 标签区域 **/
|
357
|
-
tags?: (ProTableColumnProps['dataIndex'] | ProTableColumnProps)[] | ((index: number, record: any) => (ProTableColumnProps['dataIndex'] | ProTableColumnProps)[]);
|
358
|
-
/** 分页器条数 **/
|
359
|
-
pageSize?: 12 | 24 | 48 | 96 | number;
|
360
|
-
/** 卡片区域滚动高度 **/
|
361
|
-
scrollHeight?: number | string;
|
362
|
-
/** 自动加载下一页 **/
|
363
|
-
autoLoadNextPage?: boolean;
|
364
|
-
/** 滚动容器 用于监听触底事件 **/
|
365
|
-
scrollDom?: HTMLElement;
|
366
|
-
/** 触底事件 **/
|
367
|
-
onScrollBottom?: () => void;
|
368
|
-
/** 使用表格分页 **/
|
369
|
-
useTablePagination?: boolean;
|
370
|
-
/** 使用响应式 **/
|
371
|
-
cardResponsiveProps?: {
|
372
|
-
xxs?: number;
|
373
|
-
xs?: number;
|
374
|
-
s?: number;
|
375
|
-
m?: number;
|
376
|
-
l?: number;
|
377
|
-
xl?: number;
|
378
|
-
};
|
379
|
-
/** 卡片配置 **/
|
380
|
-
cardProps?: {
|
381
|
-
[key in keyof ProCardProps]?: ProCardProps[key] | ((index: number, record: any) => ProCardProps[key]);
|
382
|
-
};
|
383
|
-
/** 是否展示卡片骨架 **/
|
384
|
-
showSkeleton?: boolean;
|
385
|
-
};
|
386
|
-
/** card 视角 Props (内部组件) **/
|
387
|
-
export declare type ProTableCardViewProps = {
|
388
|
-
/** 卡片视角配置 **/
|
389
|
-
cardViewProps?: ProTableCardProps;
|
390
|
-
/** 数据源 **/
|
391
|
-
dataSource?: any[];
|
392
|
-
/** 原始 columns **/
|
393
|
-
originColumns?: any[];
|
394
|
-
/** 处理过后的 columns **/
|
395
|
-
columns?: any[];
|
396
|
-
/** 加载动画 **/
|
397
|
-
loading?: boolean;
|
398
|
-
/** 上下文 **/
|
399
|
-
context?: any;
|
400
|
-
actionRef?: React.MutableRefObject<ProTableActionType | undefined>;
|
401
|
-
/** 卡片区域滚动高度 **/
|
402
|
-
scrollHeight?: number | string;
|
403
|
-
/** 骨架屏状态 **/
|
404
|
-
showSkeleton?: boolean;
|
405
|
-
/** ProCard 卡片配置 **/
|
406
|
-
cardProps?: ProTableCardProps['cardProps'];
|
407
|
-
/** 表格分页器参数 **/
|
408
|
-
tablePaginationProps?: PaginationProps;
|
409
|
-
};
|
410
|
-
export declare type ProTableBindUrlProps = {
|
411
|
-
/** 翻页器区域 **/
|
412
|
-
pagination?: boolean;
|
413
|
-
/** 搜索区域 **/
|
414
|
-
filters?: boolean;
|
415
|
-
/** 表格标题过滤器区域 **/
|
416
|
-
headerFilters?: boolean;
|
417
|
-
};
|
418
|
-
export {};
|
@@ -1,13 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* 渲染列的逻辑函数
|
3
|
-
*/
|
4
|
-
import React from 'react';
|
5
|
-
import { ProTableColumnProps, ProTableActionType, ProTableProps } from '../typing';
|
6
|
-
/**
|
7
|
-
* 增加了 icon 的功能 render title
|
8
|
-
*/
|
9
|
-
export declare const renderColumnsTitle: (item: ProTableColumnProps, actionRef: React.MutableRefObject<ProTableActionType | undefined>, bindUrl?: ProTableProps['bindUrl'], bindUrlProps?: ProTableProps['bindUrlProps']) => JSX.Element;
|
10
|
-
/**
|
11
|
-
* 负责单元格的具体渲染
|
12
|
-
*/
|
13
|
-
export declare const renderCell: (value: any, item: ProTableColumnProps, index: number, record: any, actionRef: React.MutableRefObject<ProTableActionType | undefined>, context?: any, dataTeamixSpm?: string) => JSX.Element;
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { ProTableColumnProps, ProTableActionType, ProTableProps } from '../typing';
|
3
|
-
import { ColumnProps } from '@alicloudfe/components/types/table';
|
4
|
-
declare type FixedColumnProps = ColumnProps & {
|
5
|
-
wordBreak?: string;
|
6
|
-
};
|
7
|
-
/**
|
8
|
-
* ProColumn => Column
|
9
|
-
*/
|
10
|
-
export default function genProColumnToColumn(columns: ProTableColumnProps[],
|
11
|
-
/** 是否渲染骨架屏 */
|
12
|
-
showSkeleton: boolean, actionRef: React.MutableRefObject<ProTableActionType | undefined>, context?: any, dataTeamixSpm?: string, bindUrl?: ProTableProps['bindUrl'], bindUrlProps?: ProTableProps['bindUrlProps']): FixedColumnProps[];
|
13
|
-
export {};
|
@@ -1,19 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { ProTableActionType } from '../typing';
|
3
|
-
import { ProTableProps, ProTableColumnProps } from '..';
|
4
|
-
export declare function actionRefUseStateOn(callback: any, state: string, ...args: any): void;
|
5
|
-
/** table 组件内监听 不对外暴露 */
|
6
|
-
export declare function on(fun: any, key: string): void;
|
7
|
-
/** table 组件内销毁监听 不对外暴露 */
|
8
|
-
export declare function off(key: string): void;
|
9
|
-
/** table 组件内触发事件 不对外暴露 */
|
10
|
-
export declare function emit(key: string, ...args: any): void;
|
11
|
-
export declare function initActionRef(ref: React.MutableRefObject<ProTableActionType | undefined>, action: ProTableActionType): void;
|
12
|
-
export declare function useActionType<T>(ref: React.MutableRefObject<ProTableActionType | undefined>, action: ProTableActionType): void;
|
13
|
-
export declare function cloneDeep<T>(obj: T): T;
|
14
|
-
/**
|
15
|
-
* 处理默认过滤参数
|
16
|
-
* @param columns
|
17
|
-
* @param ref
|
18
|
-
*/
|
19
|
-
export declare function processDefaultFilter(columns: ProTableColumnProps[], ref: React.MutableRefObject<ProTableActionType | undefined>, defaultFilterParams: ProTableProps['defaultFilterParams']): void;
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import { ProTableColumnProps } from '../typing';
|
2
|
-
/**
|
3
|
-
* 增加了 icon 的功能 render title
|
4
|
-
*/
|
5
|
-
export declare const renderColumnsTitle: (item: ProTableColumnProps) => JSX.Element;
|
6
|
-
/**
|
7
|
-
* 负责单元格的具体渲染
|
8
|
-
*/
|
9
|
-
export declare const renderCell: (value: any, item: ProTableColumnProps, index: number, record: any) => JSX.Element;
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import { ProTableColumnProps } from '../typing';
|
2
|
-
import { ColumnProps } from '@alicloudfe/components/types/table';
|
3
|
-
/**
|
4
|
-
* ProColumn => Column,去掉操作列,过滤器相关逻辑
|
5
|
-
* 用于非 ProTable 比如 selectTable
|
6
|
-
*/
|
7
|
-
export default function genProColumnToColumn(columns: ProTableColumnProps[]): ColumnProps[] | any[];
|
package/es/table/utils/util.d.ts
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
import { PageProps } from '../../page-container';
|
2
|
-
import { ProPageHeaderProps } from '../../page-header';
|
3
|
-
import { ProTableProps } from '../../table';
|
4
|
-
export declare type ListPageProps = PageProps<{
|
5
|
-
header: ProPageHeaderProps;
|
6
|
-
content: ProTableProps;
|
7
|
-
}>;
|
8
|
-
export declare const ListPage: (props: ListPageProps) => JSX.Element;
|
9
|
-
export default ListPage;
|
package/es/templates/index.d.ts
DELETED
package/es/timeline/index.d.ts
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { ProTimeLineProps } from './typing';
|
3
|
-
import ProTimeLineItem from './ProTimeLineItem';
|
4
|
-
import './index.scss';
|
5
|
-
interface ProTimelineProperties {
|
6
|
-
/** ProTimeLineItem */
|
7
|
-
Item: typeof ProTimeLineItem;
|
8
|
-
}
|
9
|
-
declare const ProTimeline: React.FC<ProTimeLineProps> & ProTimelineProperties;
|
10
|
-
export { ProTimeline, ProTimeLineItem };
|
package/es/timeline/typing.d.ts
DELETED
@@ -1,107 +0,0 @@
|
|
1
|
-
import { ReactNode } from 'react';
|
2
|
-
import { ProTagItem } from '../field';
|
3
|
-
export declare type ProTimeLineItemStatus = 'success' | 'fail' | 'process' | 'warning' | 'wait';
|
4
|
-
export declare type FoldProps = {
|
5
|
-
/**
|
6
|
-
* 折叠区域
|
7
|
-
*/
|
8
|
-
foldArea: [number, number];
|
9
|
-
/**
|
10
|
-
* 是否展示折叠图标
|
11
|
-
*/
|
12
|
-
foldShow: boolean;
|
13
|
-
};
|
14
|
-
export declare type ProTimeLineProps = {
|
15
|
-
/**
|
16
|
-
* 时间线:节点展示类型
|
17
|
-
*/
|
18
|
-
shape?: 'circle' | 'dot';
|
19
|
-
/**
|
20
|
-
* 内部渲染自组件
|
21
|
-
*/
|
22
|
-
items?: ProTimeLineItemProps[];
|
23
|
-
/**
|
24
|
-
* 时间线: 自定义折叠选项
|
25
|
-
*/
|
26
|
-
fold?: FoldProps[];
|
27
|
-
/**
|
28
|
-
* 是否为评论型 timeline
|
29
|
-
*/
|
30
|
-
comment?: boolean;
|
31
|
-
children?: ReactNode;
|
32
|
-
};
|
33
|
-
export declare type ProTimeLineItemProps = {
|
34
|
-
/**
|
35
|
-
* 是否为评论型 timeline
|
36
|
-
*/
|
37
|
-
_comment?: boolean;
|
38
|
-
/**
|
39
|
-
* 时间线:节点展示类型
|
40
|
-
*/
|
41
|
-
_shape?: 'circle' | 'dot';
|
42
|
-
/**
|
43
|
-
* 节点状态
|
44
|
-
*/
|
45
|
-
status?: string | ProTimeLineItemStatus;
|
46
|
-
/**
|
47
|
-
* 图标
|
48
|
-
*/
|
49
|
-
icon?: string;
|
50
|
-
/**
|
51
|
-
* 节点的内容
|
52
|
-
*/
|
53
|
-
content?: ReactNode;
|
54
|
-
/**
|
55
|
-
* 节点标题
|
56
|
-
*/
|
57
|
-
title?: ReactNode;
|
58
|
-
/**
|
59
|
-
* 自定义渲染
|
60
|
-
*/
|
61
|
-
dotRender?: (index?: number, status?: string) => ReactNode;
|
62
|
-
/**
|
63
|
-
* 节点副标题
|
64
|
-
* @deprecated 弃用,请使用 `time`
|
65
|
-
*/
|
66
|
-
subTitle?: ReactNode;
|
67
|
-
/**
|
68
|
-
* 右侧时间
|
69
|
-
*/
|
70
|
-
time?: ReactNode;
|
71
|
-
/**
|
72
|
-
* 节点对应描述
|
73
|
-
*/
|
74
|
-
discription?: ReactNode;
|
75
|
-
/**
|
76
|
-
* 节点的标签
|
77
|
-
*/
|
78
|
-
tags?: ProTagItem[] | ReactNode;
|
79
|
-
/**
|
80
|
-
* 左侧展示时间
|
81
|
-
*/
|
82
|
-
timeLeft?: ReactNode;
|
83
|
-
/**
|
84
|
-
* 头像
|
85
|
-
*/
|
86
|
-
image?: string | ReactNode;
|
87
|
-
/**
|
88
|
-
* animation 动画
|
89
|
-
*/
|
90
|
-
animation?: boolean;
|
91
|
-
/**
|
92
|
-
* 卡片是否可折叠
|
93
|
-
*/
|
94
|
-
collapsible?: boolean;
|
95
|
-
/**
|
96
|
-
* 默认是否折叠,用于非受控模式
|
97
|
-
*/
|
98
|
-
defaultCollapsed?: boolean;
|
99
|
-
/**
|
100
|
-
* 是否折叠,受控模式
|
101
|
-
*/
|
102
|
-
collapsed?: boolean;
|
103
|
-
/**
|
104
|
-
* 折叠状态改变的回调函数
|
105
|
-
*/
|
106
|
-
onCollapse?: (collapsed: boolean) => void;
|
107
|
-
};
|
package/es/utils/index.d.ts
DELETED
package/es/utils/message.d.ts
DELETED