@pisell/materials 3.3.88 → 3.3.90
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/es/components/PisellCards/components/GraphicTextCard/components/BadgeWrapper.d.ts +5 -0
- package/es/components/PisellCards/components/GraphicTextCard/components/TextContent.d.ts +27 -0
- package/es/components/PisellCards/components/GraphicTextCard/hooks/index.d.ts +5 -0
- package/es/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardClick.d.ts +15 -0
- package/es/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardStyle.d.ts +18 -0
- package/es/components/PisellCards/components/GraphicTextCard/types.d.ts +290 -0
- package/es/components/PisellCards/components/GraphicTextCard/utils/index.d.ts +19 -0
- package/es/components/PisellCards/components/TextCard/TextCard.d.ts +8 -0
- package/es/components/PisellCards/components/TextCard/components/BadgeWrapper.d.ts +26 -0
- package/es/components/PisellCards/components/TextCard/components/IconWrapper.d.ts +17 -0
- package/es/components/PisellCards/components/TextCard/components/TextContent.d.ts +21 -0
- package/es/components/PisellCards/components/TextCard/components/index.d.ts +6 -0
- package/es/components/PisellCards/components/TextCard/index.d.ts +5 -0
- package/es/components/PisellCards/components/TextCard/types.d.ts +270 -0
- package/es/components/PisellCards/index.d.ts +14 -0
- package/es/components/config-provider/index.d.ts +10 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +84 -0
- package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +27 -0
- package/es/components/dataSourceComponents/fields/Tabs/index.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Upload/constants.d.ts +9 -0
- package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +11 -11
- package/es/components/drag-sort-tree/index.d.ts +5 -0
- package/es/components/filter/components/Dropdown/types.d.ts +13 -0
- package/es/components/filter/components/FilterButton/types.d.ts +24 -0
- package/es/components/filter/types.d.ts +48 -0
- package/es/components/login-and-register/index.d.ts +82 -0
- package/es/components/pisellCurrency/PisellCurrency.d.ts +39 -0
- package/es/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +0 -1
- package/es/components/pisellDateTimeDisplay/utils/relativeDay.d.ts +24 -0
- package/es/components/pisellEmail/PisellEmail.d.ts +37 -0
- package/es/components/pisellFilter/type.d.ts +5 -0
- package/es/components/pisellGridPro/index.d.ts +4 -0
- package/es/components/pisellLongText/PisellLongText.d.ts +39 -0
- package/es/components/pisellMultipleSelect/PisellMultipleSelect.d.ts +9 -0
- package/es/components/pisellMultipleSelect/components/EditView.d.ts +8 -0
- package/es/components/pisellNumber/PisellNumber.d.ts +42 -0
- package/es/components/pisellPhone/PisellPhone.d.ts +36 -0
- package/es/components/pisellPhone/components/EditView.d.ts +19 -0
- package/es/components/pisellPhone/constants/countryCodes.d.ts +20 -0
- package/es/components/pisellPhone/types.d.ts +209 -0
- package/es/components/pisellPhone/utils/countryCodeHelper.d.ts +35 -0
- package/es/components/pisellQuickFilter/type.d.ts +12 -0
- package/es/components/pisellRating/PisellRating.d.ts +31 -0
- package/es/components/pisellRecordBoard/context/RecordBoardContext.d.ts +3 -0
- package/es/components/pisellRecordBoard/context/RecordBoardProvider.d.ts +11 -0
- package/es/components/pisellRecordBoard/hooks/useRecordBoardContext.d.ts +16 -0
- package/es/components/pisellRecordBoard/layouts/CardLayout/CardList.d.ts +12 -0
- package/es/components/pisellRecordBoard/layouts/CardLayout/index.d.ts +13 -0
- package/es/components/pisellRecordBoard/shellFrame/BatchActionBar/index.d.ts +8 -0
- package/es/components/pisellRecordBoard/shellFrame/Search/index.d.ts +10 -0
- package/es/components/pisellRecordBoard/shellFrame/ToolBarReset/index.d.ts +16 -0
- package/es/components/pisellRecordBoard/types.d.ts +315 -0
- package/es/components/pisellRecordBoard/utils/withRecordBoard.d.ts +9 -0
- package/es/components/pisellSingleLineText/PisellSingleLineText.d.ts +40 -0
- package/es/components/pisellSingleSelect/PisellSingleSelect.d.ts +9 -0
- package/es/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.d.ts +32 -0
- package/es/components/pisellUrl/PisellUrl.d.ts +37 -0
- package/es/components/productCard/components/Header/DeleteButton/index.d.ts +4 -0
- package/es/components/productCard/components/Packages/utils.d.ts +2 -2
- package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +4 -0
- package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +19 -0
- package/es/components/sort/index.d.ts +5 -0
- package/es/components/table/Actions/component/ViewMode/index.d.ts +9 -0
- package/es/components/table/Gallery/components/GalleryItem/index.d.ts +14 -0
- package/es/components/table/Table/fields/select/index.d.ts +0 -1
- package/es/components/table/Table/fields/treeSelect/index.d.ts +0 -1
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/components/table/types.d.ts +268 -0
- package/es/components/translation/index.d.ts +17 -0
- package/es/components/translation/utils.d.ts +9 -0
- package/lib/components/PisellCards/components/GraphicTextCard/components/BadgeWrapper.d.ts +5 -0
- package/lib/components/PisellCards/components/GraphicTextCard/components/TextContent.d.ts +27 -0
- package/lib/components/PisellCards/components/GraphicTextCard/hooks/index.d.ts +5 -0
- package/lib/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardClick.d.ts +15 -0
- package/lib/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardStyle.d.ts +18 -0
- package/lib/components/PisellCards/components/GraphicTextCard/types.d.ts +290 -0
- package/lib/components/PisellCards/components/GraphicTextCard/utils/index.d.ts +19 -0
- package/lib/components/PisellCards/components/TextCard/TextCard.d.ts +8 -0
- package/lib/components/PisellCards/components/TextCard/components/BadgeWrapper.d.ts +26 -0
- package/lib/components/PisellCards/components/TextCard/components/IconWrapper.d.ts +17 -0
- package/lib/components/PisellCards/components/TextCard/components/TextContent.d.ts +21 -0
- package/lib/components/PisellCards/components/TextCard/components/index.d.ts +6 -0
- package/lib/components/PisellCards/components/TextCard/index.d.ts +5 -0
- package/lib/components/PisellCards/components/TextCard/types.d.ts +270 -0
- package/lib/components/PisellCards/index.d.ts +14 -0
- package/lib/components/config-provider/index.d.ts +10 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +84 -0
- package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +27 -0
- package/lib/components/dataSourceComponents/fields/Tabs/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Upload/constants.d.ts +9 -0
- package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +11 -11
- package/lib/components/drag-sort-tree/index.d.ts +5 -0
- package/lib/components/filter/components/Dropdown/types.d.ts +13 -0
- package/lib/components/filter/components/FilterButton/types.d.ts +24 -0
- package/lib/components/filter/types.d.ts +48 -0
- package/lib/components/login-and-register/index.d.ts +82 -0
- package/lib/components/pisellCurrency/PisellCurrency.d.ts +39 -0
- package/lib/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +0 -1
- package/lib/components/pisellDateTimeDisplay/utils/relativeDay.d.ts +24 -0
- package/lib/components/pisellEmail/PisellEmail.d.ts +37 -0
- package/lib/components/pisellFilter/type.d.ts +5 -0
- package/lib/components/pisellGridPro/index.d.ts +4 -0
- package/lib/components/pisellLongText/PisellLongText.d.ts +39 -0
- package/lib/components/pisellMultipleSelect/PisellMultipleSelect.d.ts +9 -0
- package/lib/components/pisellMultipleSelect/components/EditView.d.ts +8 -0
- package/lib/components/pisellNumber/PisellNumber.d.ts +42 -0
- package/lib/components/pisellPhone/PisellPhone.d.ts +36 -0
- package/lib/components/pisellPhone/components/EditView.d.ts +19 -0
- package/lib/components/pisellPhone/constants/countryCodes.d.ts +20 -0
- package/lib/components/pisellPhone/types.d.ts +209 -0
- package/lib/components/pisellPhone/utils/countryCodeHelper.d.ts +35 -0
- package/lib/components/pisellQuickFilter/type.d.ts +12 -0
- package/lib/components/pisellRating/PisellRating.d.ts +31 -0
- package/lib/components/pisellRecordBoard/context/RecordBoardContext.d.ts +3 -0
- package/lib/components/pisellRecordBoard/context/RecordBoardProvider.d.ts +11 -0
- package/lib/components/pisellRecordBoard/hooks/useRecordBoardContext.d.ts +16 -0
- package/lib/components/pisellRecordBoard/layouts/CardLayout/CardList.d.ts +12 -0
- package/lib/components/pisellRecordBoard/layouts/CardLayout/index.d.ts +13 -0
- package/lib/components/pisellRecordBoard/shellFrame/BatchActionBar/index.d.ts +8 -0
- package/lib/components/pisellRecordBoard/shellFrame/Search/index.d.ts +10 -0
- package/lib/components/pisellRecordBoard/shellFrame/ToolBarReset/index.d.ts +16 -0
- package/lib/components/pisellRecordBoard/types.d.ts +315 -0
- package/lib/components/pisellRecordBoard/utils/withRecordBoard.d.ts +9 -0
- package/lib/components/pisellSingleLineText/PisellSingleLineText.d.ts +40 -0
- package/lib/components/pisellSingleSelect/PisellSingleSelect.d.ts +9 -0
- package/lib/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.d.ts +32 -0
- package/lib/components/pisellUrl/PisellUrl.d.ts +37 -0
- package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +4 -0
- package/lib/components/productCard/components/Packages/utils.d.ts +2 -2
- package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +4 -0
- package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +19 -0
- package/lib/components/sort/index.d.ts +5 -0
- package/lib/components/table/Actions/component/ViewMode/index.d.ts +9 -0
- package/lib/components/table/Gallery/components/GalleryItem/index.d.ts +14 -0
- package/lib/components/table/Table/fields/select/index.d.ts +0 -1
- package/lib/components/table/Table/fields/treeSelect/index.d.ts +0 -1
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/components/table/types.d.ts +268 -0
- package/lib/components/translation/index.d.ts +17 -0
- package/lib/components/translation/utils.d.ts +9 -0
- package/lowcode/auto-resize-text/meta.ts +9 -9
- package/package.json +3 -3
- package/es/components/PisellProcedure/PisellProcedure.stories.d.ts +0 -163
- package/es/components/PisellProcedure/index.d.ts +0 -5
- package/es/components/PisellSteps/PisellSteps.d.ts +0 -14
- package/es/components/dataSourceComponents/dataSourceSubForm/types.d.ts +0 -117
- package/es/components/dataSourceComponents/fields/RecordListWrapper/ReadPretty.d.ts +0 -9
- package/es/components/dataSourceComponents/fields/RecordListWrapper/type.d.ts +0 -87
- package/es/components/dataSourceComponents/fields/Tabs/Tabs.d.ts +0 -23
- package/es/components/dataSourceComponents/fields/Tabs/type.d.ts +0 -38
- package/es/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +0 -5
- package/es/components/dataSourceComponents/fields/Translation/type.d.ts +0 -21
- package/es/components/pisellLookup/PisellLookup.d.ts +0 -4
- package/es/components/pisellLookup/components/LookupTrigger.d.ts +0 -3
- package/lib/components/PisellProcedure/PisellProcedure.stories.d.ts +0 -163
- package/lib/components/PisellProcedure/index.d.ts +0 -5
- package/lib/components/PisellSteps/PisellSteps.d.ts +0 -14
- package/lib/components/dataSourceComponents/dataSourceSubForm/types.d.ts +0 -117
- package/lib/components/dataSourceComponents/fields/RecordListWrapper/ReadPretty.d.ts +0 -9
- package/lib/components/dataSourceComponents/fields/RecordListWrapper/type.d.ts +0 -87
- package/lib/components/dataSourceComponents/fields/Tabs/Tabs.d.ts +0 -23
- package/lib/components/dataSourceComponents/fields/Tabs/type.d.ts +0 -38
- package/lib/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +0 -5
- package/lib/components/dataSourceComponents/fields/Translation/type.d.ts +0 -21
- package/lib/components/pisellLookup/PisellLookup.d.ts +0 -4
- package/lib/components/pisellLookup/components/LookupTrigger.d.ts +0 -3
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BadgeWrapperProps } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* BadgeWrapper 角标包装组件
|
|
5
|
+
* 负责角标的渲染和定位,支持红点、数字、文本三种类型
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* // 红点角标
|
|
10
|
+
* <BadgeWrapper badge={{ type: 'dot' }}>
|
|
11
|
+
* <TextCard text="Item" />
|
|
12
|
+
* </BadgeWrapper>
|
|
13
|
+
*
|
|
14
|
+
* // 数字角标
|
|
15
|
+
* <BadgeWrapper badge={{ type: 'number', content: 99 }}>
|
|
16
|
+
* <TextCard text="Item" />
|
|
17
|
+
* </BadgeWrapper>
|
|
18
|
+
*
|
|
19
|
+
* // 文本角标
|
|
20
|
+
* <BadgeWrapper badge={{ type: 'text', content: 'New' }}>
|
|
21
|
+
* <TextCard text="Item" />
|
|
22
|
+
* </BadgeWrapper>
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
declare const BadgeWrapper: React.FC<BadgeWrapperProps>;
|
|
26
|
+
export default BadgeWrapper;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IconWrapperProps } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* IconWrapper 图标包装组件
|
|
5
|
+
* 负责统一图标渲染逻辑,支持自定义图标大小和颜色
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* <IconWrapper
|
|
10
|
+
* icon={<BellIcon />}
|
|
11
|
+
* position="prefix"
|
|
12
|
+
* config={{ size: 16, color: '#666' }}
|
|
13
|
+
* />
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
declare const IconWrapper: React.FC<IconWrapperProps>;
|
|
17
|
+
export default IconWrapper;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TextContentProps } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* TextContent 文本内容组件
|
|
5
|
+
* 负责渲染主文本内容,处理文本省略逻辑
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* <TextContent
|
|
10
|
+
* text="这是一段很长的文本内容"
|
|
11
|
+
* textConfig={{
|
|
12
|
+
* maxLines: 2,
|
|
13
|
+
* ellipsis: true,
|
|
14
|
+
* fontSize: 14,
|
|
15
|
+
* color: '#333'
|
|
16
|
+
* }}
|
|
17
|
+
* />
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
declare const TextContent: React.FC<TextContentProps>;
|
|
21
|
+
export default TextContent;
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import { PisellBasicCardProps } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* 样式变体类型
|
|
5
|
+
*/
|
|
6
|
+
export declare type TextCardVariant = 'text' | 'filled' | 'outlined' | 'light' | 'gradient' | 'dashed';
|
|
7
|
+
/**
|
|
8
|
+
* 尺寸类型
|
|
9
|
+
*/
|
|
10
|
+
export declare type TextCardSize = 'small' | 'default' | 'large';
|
|
11
|
+
/**
|
|
12
|
+
* 宽度模式
|
|
13
|
+
*/
|
|
14
|
+
export declare type TextCardWidthMode = 'auto' | 'fixed' | 'full';
|
|
15
|
+
/**
|
|
16
|
+
* 图标配置
|
|
17
|
+
*/
|
|
18
|
+
export interface IconConfig {
|
|
19
|
+
/**
|
|
20
|
+
* 图标大小(单位:px)
|
|
21
|
+
*/
|
|
22
|
+
size?: number;
|
|
23
|
+
/**
|
|
24
|
+
* 图标颜色
|
|
25
|
+
*/
|
|
26
|
+
color?: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* 标签配置
|
|
30
|
+
*/
|
|
31
|
+
export interface TagConfig {
|
|
32
|
+
/**
|
|
33
|
+
* 标签颜色
|
|
34
|
+
*/
|
|
35
|
+
color?: string;
|
|
36
|
+
/**
|
|
37
|
+
* 标签自定义样式
|
|
38
|
+
*/
|
|
39
|
+
style?: CSSProperties;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* 角标类型
|
|
43
|
+
*/
|
|
44
|
+
export declare type BadgeType = 'dot' | 'number' | 'text';
|
|
45
|
+
/**
|
|
46
|
+
* 角标位置
|
|
47
|
+
*/
|
|
48
|
+
export declare type BadgePosition = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
|
|
49
|
+
/**
|
|
50
|
+
* 角标配置
|
|
51
|
+
*/
|
|
52
|
+
export interface BadgeConfig {
|
|
53
|
+
/**
|
|
54
|
+
* 角标类型
|
|
55
|
+
* @default 'dot'
|
|
56
|
+
*/
|
|
57
|
+
type?: BadgeType;
|
|
58
|
+
/**
|
|
59
|
+
* 角标内容(数字或文本)
|
|
60
|
+
* 当 type 为 'number' 或 'text' 时有效
|
|
61
|
+
*/
|
|
62
|
+
content?: ReactNode;
|
|
63
|
+
/**
|
|
64
|
+
* 角标位置
|
|
65
|
+
* @default 'top-right'
|
|
66
|
+
*/
|
|
67
|
+
position?: BadgePosition;
|
|
68
|
+
/**
|
|
69
|
+
* 角标偏移量 [x, y]
|
|
70
|
+
* 正数向右/下偏移,负数向左/上偏移
|
|
71
|
+
*/
|
|
72
|
+
offset?: [number, number];
|
|
73
|
+
/**
|
|
74
|
+
* 角标颜色
|
|
75
|
+
*/
|
|
76
|
+
color?: string;
|
|
77
|
+
/**
|
|
78
|
+
* 角标自定义样式
|
|
79
|
+
*/
|
|
80
|
+
style?: CSSProperties;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* 文本配置
|
|
84
|
+
*/
|
|
85
|
+
export interface TextConfig {
|
|
86
|
+
/**
|
|
87
|
+
* 字体大小(单位:px)
|
|
88
|
+
*/
|
|
89
|
+
fontSize?: number;
|
|
90
|
+
/**
|
|
91
|
+
* 字体粗细
|
|
92
|
+
*/
|
|
93
|
+
fontWeight?: string | number;
|
|
94
|
+
/**
|
|
95
|
+
* 文本颜色
|
|
96
|
+
*/
|
|
97
|
+
color?: string;
|
|
98
|
+
/**
|
|
99
|
+
* 最大显示行数
|
|
100
|
+
* @default 1
|
|
101
|
+
*/
|
|
102
|
+
maxLines?: number;
|
|
103
|
+
/**
|
|
104
|
+
* 是否显示省略号
|
|
105
|
+
* @default true
|
|
106
|
+
*/
|
|
107
|
+
ellipsis?: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* 文本对齐方式
|
|
110
|
+
* @default 'left'
|
|
111
|
+
*/
|
|
112
|
+
textAlign?: 'left' | 'center' | 'right';
|
|
113
|
+
flex?: string;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* TextCard 组件 Props
|
|
117
|
+
* 基于 PisellBasicCardProps 扩展
|
|
118
|
+
* 注意:重写 onClick 为可选属性
|
|
119
|
+
*/
|
|
120
|
+
export interface TextCardProps extends Omit<PisellBasicCardProps, 'onClick'> {
|
|
121
|
+
/**
|
|
122
|
+
* 卡片显示的文本内容(必填)
|
|
123
|
+
*/
|
|
124
|
+
text: ReactNode;
|
|
125
|
+
/**
|
|
126
|
+
* 卡片样式变体
|
|
127
|
+
* @default 'text'
|
|
128
|
+
*/
|
|
129
|
+
variant?: TextCardVariant;
|
|
130
|
+
/**
|
|
131
|
+
* 卡片尺寸
|
|
132
|
+
* @default 'default'
|
|
133
|
+
*/
|
|
134
|
+
size?: TextCardSize;
|
|
135
|
+
/**
|
|
136
|
+
* 是否可点击
|
|
137
|
+
* @default true
|
|
138
|
+
*/
|
|
139
|
+
clickable?: boolean;
|
|
140
|
+
/**
|
|
141
|
+
* 前置图标
|
|
142
|
+
* 支持 ReactNode(如 antd Icon、svg 等)
|
|
143
|
+
*/
|
|
144
|
+
prefixIcon?: ReactNode;
|
|
145
|
+
/**
|
|
146
|
+
* 后置图标
|
|
147
|
+
* 支持 ReactNode(如 antd Icon、svg 等)
|
|
148
|
+
*/
|
|
149
|
+
suffixIcon?: ReactNode;
|
|
150
|
+
/**
|
|
151
|
+
* 图标配置
|
|
152
|
+
* 统一配置前置和后置图标的大小和颜色
|
|
153
|
+
*/
|
|
154
|
+
iconConfig?: IconConfig;
|
|
155
|
+
/**
|
|
156
|
+
* 后置标签
|
|
157
|
+
* 支持 ReactNode(如 antd Tag、Badge 等)
|
|
158
|
+
*/
|
|
159
|
+
tag?: ReactNode;
|
|
160
|
+
/**
|
|
161
|
+
* 标签配置
|
|
162
|
+
*/
|
|
163
|
+
tagConfig?: TagConfig;
|
|
164
|
+
/**
|
|
165
|
+
* 角标配置
|
|
166
|
+
* 用于显示红点、数字或文本提示
|
|
167
|
+
*/
|
|
168
|
+
badge?: BadgeConfig;
|
|
169
|
+
/**
|
|
170
|
+
* 前置插槽
|
|
171
|
+
* 用于替换前置图标,优先级高于 prefixIcon
|
|
172
|
+
*/
|
|
173
|
+
prefixSlot?: ReactNode;
|
|
174
|
+
/**
|
|
175
|
+
* 后置插槽
|
|
176
|
+
* 用于替换后置图标和标签,优先级高于 suffixIcon 和 tag
|
|
177
|
+
*/
|
|
178
|
+
suffixSlot?: ReactNode;
|
|
179
|
+
/**
|
|
180
|
+
* 文本配置
|
|
181
|
+
* 用于自定义文本样式和显示行为
|
|
182
|
+
*/
|
|
183
|
+
textConfig?: TextConfig;
|
|
184
|
+
/**
|
|
185
|
+
* 宽度模式
|
|
186
|
+
* - auto: 内容撑满,最大宽度 maxWidth
|
|
187
|
+
* - fixed: 固定宽度 width
|
|
188
|
+
* - full: 撑满父容器,最小宽度 28px
|
|
189
|
+
* @default 'auto'
|
|
190
|
+
*/
|
|
191
|
+
widthMode?: TextCardWidthMode;
|
|
192
|
+
/**
|
|
193
|
+
* 固定宽度值
|
|
194
|
+
* 当 widthMode='fixed' 时有效
|
|
195
|
+
*/
|
|
196
|
+
width?: number | string;
|
|
197
|
+
/**
|
|
198
|
+
* 最大宽度
|
|
199
|
+
* 当 widthMode='auto' 时有效
|
|
200
|
+
* @default 400
|
|
201
|
+
*/
|
|
202
|
+
maxWidth?: number | string;
|
|
203
|
+
/**
|
|
204
|
+
* 点击事件
|
|
205
|
+
* 当 clickable=true 且不在 disabled/loading 状态时触发
|
|
206
|
+
* 注意:PisellBasicCardProps 中的 onClick 是必填的,这里重新定义为可选
|
|
207
|
+
*/
|
|
208
|
+
onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
209
|
+
/**
|
|
210
|
+
* 自定义渲染函数
|
|
211
|
+
* 完全自定义组件的渲染内容
|
|
212
|
+
* 当提供此函数时,组件内置的渲染逻辑将被忽略
|
|
213
|
+
*/
|
|
214
|
+
render?: (props: TextCardProps) => ReactNode;
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* TextContent 组件 Props
|
|
218
|
+
* 文本内容子组件
|
|
219
|
+
*/
|
|
220
|
+
export interface TextContentProps {
|
|
221
|
+
/**
|
|
222
|
+
* 文本内容
|
|
223
|
+
*/
|
|
224
|
+
text: ReactNode;
|
|
225
|
+
/**
|
|
226
|
+
* 文本配置
|
|
227
|
+
*/
|
|
228
|
+
textConfig?: TextConfig;
|
|
229
|
+
/**
|
|
230
|
+
* 自定义类名
|
|
231
|
+
*/
|
|
232
|
+
className?: string;
|
|
233
|
+
active?: PisellBasicCardProps['active'];
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* IconWrapper 组件 Props
|
|
237
|
+
* 图标包装子组件
|
|
238
|
+
*/
|
|
239
|
+
export interface IconWrapperProps {
|
|
240
|
+
/**
|
|
241
|
+
* 图标内容
|
|
242
|
+
*/
|
|
243
|
+
icon: ReactNode;
|
|
244
|
+
/**
|
|
245
|
+
* 图标配置
|
|
246
|
+
*/
|
|
247
|
+
config?: IconConfig;
|
|
248
|
+
/**
|
|
249
|
+
* 图标位置
|
|
250
|
+
*/
|
|
251
|
+
position: 'prefix' | 'suffix';
|
|
252
|
+
/**
|
|
253
|
+
* 自定义类名
|
|
254
|
+
*/
|
|
255
|
+
className?: string;
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* BadgeWrapper 组件 Props
|
|
259
|
+
* 角标包装子组件
|
|
260
|
+
*/
|
|
261
|
+
export interface BadgeWrapperProps {
|
|
262
|
+
/**
|
|
263
|
+
* 角标配置
|
|
264
|
+
*/
|
|
265
|
+
badge?: BadgeConfig;
|
|
266
|
+
/**
|
|
267
|
+
* 子元素
|
|
268
|
+
*/
|
|
269
|
+
children: ReactNode;
|
|
270
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const PisellCards: {
|
|
2
|
+
TabCard: (props: any) => import("react").JSX.Element;
|
|
3
|
+
TextCard: (props: any) => import("react").JSX.Element;
|
|
4
|
+
GraphicTextCard: (props: import("./components/GraphicTextCard").GraphicTextCardProps) => import("react").JSX.Element;
|
|
5
|
+
MultilevelCard: (props: any) => import("react").JSX.Element;
|
|
6
|
+
PisellImageCard: (props: import("./components/PisellImageCard").PisellImageCardProps) => import("react").JSX.Element;
|
|
7
|
+
};
|
|
8
|
+
export default PisellCards;
|
|
9
|
+
export type { PisellBasicCardProps } from './types';
|
|
10
|
+
export type { TabCardProps, BadgeConfig } from './components/TabCard/types';
|
|
11
|
+
export type { TextCardProps } from './components/TextCard/types';
|
|
12
|
+
export type { GraphicTextCardProps, GraphicTextCardVariant, GraphicTextCardSize, GraphicConfig, } from './components/GraphicTextCard/types';
|
|
13
|
+
export type { MultilevelCardProps } from './components/MultilevelCard/types';
|
|
14
|
+
export type { PisellImageCardProps, ImageDataSource, ImageFillMode, } from './components/PisellImageCard/types';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ConfigProviderProps as OriginalConfigProviderProps } from "antd/es/config-provider";
|
|
3
|
+
import "dayjs/locale/zh-cn";
|
|
4
|
+
import "dayjs/locale/ja";
|
|
5
|
+
import "dayjs/locale/pt";
|
|
6
|
+
export interface ConfigProviderProps extends OriginalConfigProviderProps {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
}
|
|
9
|
+
declare const ConfigProvider: (props: ConfigProviderProps) => React.JSX.Element;
|
|
10
|
+
export default ConfigProvider;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ColumnType } from 'antd/es/table';
|
|
3
|
+
import { LocalSettingsType } from '../../table/types';
|
|
4
|
+
import { DataSourceType } from '../provider/dataSource/DataSourceContext';
|
|
5
|
+
export declare type OperationItem = {
|
|
6
|
+
label?: string;
|
|
7
|
+
openMode: 'modal' | 'drawer' | 'custom';
|
|
8
|
+
openContentSize: 'small' | 'middle' | 'large';
|
|
9
|
+
openTitle: string;
|
|
10
|
+
actionType: 'detail' | 'edit' | 'delete' | 'custom';
|
|
11
|
+
key: string;
|
|
12
|
+
buttonProps?: any;
|
|
13
|
+
onClick?: (record: any) => void;
|
|
14
|
+
afterClose?: () => void;
|
|
15
|
+
};
|
|
16
|
+
export interface DataSourceTableProps {
|
|
17
|
+
__id?: string;
|
|
18
|
+
currentComponentId?: string;
|
|
19
|
+
currentSettingKey?: string;
|
|
20
|
+
title?: string | React.ReactNode | (() => React.ReactNode);
|
|
21
|
+
subTitle?: string | React.ReactNode | (() => React.ReactNode);
|
|
22
|
+
titleButtons?: {
|
|
23
|
+
show: boolean;
|
|
24
|
+
maxCount: number;
|
|
25
|
+
items: OperationItem[];
|
|
26
|
+
};
|
|
27
|
+
tableButtons?: {
|
|
28
|
+
show: boolean;
|
|
29
|
+
maxCount: number;
|
|
30
|
+
items: OperationItem[];
|
|
31
|
+
};
|
|
32
|
+
buttons?: any[];
|
|
33
|
+
operation?: {
|
|
34
|
+
show: boolean;
|
|
35
|
+
title: string;
|
|
36
|
+
width: number;
|
|
37
|
+
align: 'left' | 'center' | 'right';
|
|
38
|
+
fixed: 'left' | 'right' | false;
|
|
39
|
+
type: 'link' | 'button';
|
|
40
|
+
items: OperationItem[];
|
|
41
|
+
};
|
|
42
|
+
operationContent?: {
|
|
43
|
+
[key: string]: React.ReactNode;
|
|
44
|
+
};
|
|
45
|
+
dataSource: DataSourceType;
|
|
46
|
+
columns: ColumnType<any>[];
|
|
47
|
+
filter: any;
|
|
48
|
+
search?: {
|
|
49
|
+
show: boolean;
|
|
50
|
+
placeholder: string;
|
|
51
|
+
};
|
|
52
|
+
__designMode: string;
|
|
53
|
+
componentId: string;
|
|
54
|
+
clickToDetail?: {
|
|
55
|
+
show: boolean;
|
|
56
|
+
useCustomAction: boolean;
|
|
57
|
+
actionType: string;
|
|
58
|
+
openMode: 'modal' | 'drawer';
|
|
59
|
+
openContentSize: 'small' | 'middle' | 'large';
|
|
60
|
+
openTitle: string;
|
|
61
|
+
key: string;
|
|
62
|
+
};
|
|
63
|
+
onRow?: any;
|
|
64
|
+
filterBy?: Record<string, any>;
|
|
65
|
+
sortBy: string;
|
|
66
|
+
tabs?: {
|
|
67
|
+
show: boolean;
|
|
68
|
+
type: string;
|
|
69
|
+
items: {
|
|
70
|
+
name: string;
|
|
71
|
+
filterBy: Record<string, any>;
|
|
72
|
+
sortBy: string;
|
|
73
|
+
}[];
|
|
74
|
+
};
|
|
75
|
+
onValuesChange?: (changedValues: any, values: any) => void;
|
|
76
|
+
extraParams?: {
|
|
77
|
+
list?: Record<string, any>;
|
|
78
|
+
get?: Record<string, any>;
|
|
79
|
+
update?: Record<string, any>;
|
|
80
|
+
create?: Record<string, any>;
|
|
81
|
+
destroy?: Record<string, any>;
|
|
82
|
+
};
|
|
83
|
+
localSettings?: LocalSettingsType;
|
|
84
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 获取nocobase数据列表
|
|
3
|
+
*/
|
|
4
|
+
export declare const getCountryDataList: () => Promise<any>;
|
|
5
|
+
export declare const getShopCountryDataList: (locale?: any) => Promise<any>;
|
|
6
|
+
export interface Country {
|
|
7
|
+
id: number;
|
|
8
|
+
name: {
|
|
9
|
+
en: string;
|
|
10
|
+
'zh-CN': string;
|
|
11
|
+
'zh-HK': string;
|
|
12
|
+
'ja': string;
|
|
13
|
+
'pt': string;
|
|
14
|
+
original: string;
|
|
15
|
+
};
|
|
16
|
+
code: string;
|
|
17
|
+
calling_code: string;
|
|
18
|
+
currency_code: string;
|
|
19
|
+
sort: number;
|
|
20
|
+
status: string;
|
|
21
|
+
created_at: string;
|
|
22
|
+
updated_at: string;
|
|
23
|
+
prefix: string;
|
|
24
|
+
}
|
|
25
|
+
export declare const useCountries: () => {
|
|
26
|
+
data: Country[];
|
|
27
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const SUPPORTED_LANGUAGES: readonly ["original", "en", "zh-CN", "zh-HK", "ja", "pt"];
|
|
2
|
+
export declare const DEFAULT_MAX_COUNT = 9;
|
|
3
|
+
export declare const DEFAULT_UID = "-1";
|
|
4
|
+
export declare const MEDIA_TYPES: {
|
|
5
|
+
readonly VIDEO: "video/";
|
|
6
|
+
readonly AUDIO: "audio/";
|
|
7
|
+
};
|
|
8
|
+
export declare const IMAGE_QUALITY = 0.8;
|
|
9
|
+
export declare const IMAGE_TYPE = "image/jpeg";
|
|
@@ -15,4 +15,4 @@ export declare const getFileMetadataParams: (file: RcFile & {
|
|
|
15
15
|
metadata?: MediaMetadata;
|
|
16
16
|
}) => Record<string, any>;
|
|
17
17
|
export declare const isValueEqual: (value: any, fileListValue: any) => boolean;
|
|
18
|
-
export declare const getBaseTime: (size: number) =>
|
|
18
|
+
export declare const getBaseTime: (size: number) => 1000 | 2000 | 4000 | 8000;
|
|
@@ -80,16 +80,7 @@ declare const formFieldMap: {
|
|
|
80
80
|
extraParams?: Record<string, any> | undefined;
|
|
81
81
|
}) => import("react").JSX.Element;
|
|
82
82
|
};
|
|
83
|
-
declare const getFieldComponent: (fieldComponent: string) => (
|
|
84
|
-
options?: any;
|
|
85
|
-
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
86
|
-
labelField: string;
|
|
87
|
-
valueField: string;
|
|
88
|
-
extraParams?: Record<string, any> | undefined;
|
|
89
|
-
} & {
|
|
90
|
-
dataSource?: any;
|
|
91
|
-
extraParams?: Record<string, any> | undefined;
|
|
92
|
-
}) => import("react").JSX.Element) | (import("react").FC<{}> & {
|
|
83
|
+
declare const getFieldComponent: (fieldComponent: string) => (import("react").FC<{}> & {
|
|
93
84
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
94
85
|
} & {
|
|
95
86
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
@@ -128,7 +119,16 @@ declare const getFieldComponent: (fieldComponent: string) => ((props: import("./
|
|
|
128
119
|
extraParams?: Record<string, any> | undefined;
|
|
129
120
|
}) => import("react").JSX.Element) | import("react").FC<any> | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
|
|
130
121
|
onChange: (value: string) => void;
|
|
131
|
-
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | ((props: import("./
|
|
122
|
+
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | ((props: import("./RecordListWrapper/type").RecordListWrapperProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
123
|
+
options?: any;
|
|
124
|
+
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
125
|
+
labelField: string;
|
|
126
|
+
valueField: string;
|
|
127
|
+
extraParams?: Record<string, any> | undefined;
|
|
128
|
+
} & {
|
|
129
|
+
dataSource?: any;
|
|
130
|
+
extraParams?: Record<string, any> | undefined;
|
|
131
|
+
}) => import("react").JSX.Element) | ((props: import("./Tabs/type").TabsProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
132
132
|
options?: any;
|
|
133
133
|
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
134
134
|
labelField: string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FilterItemProps } from '../../types';
|
|
2
|
+
export interface DropdownProps {
|
|
3
|
+
quickFilter: FilterItemProps[];
|
|
4
|
+
otherFilter: FilterItemProps[];
|
|
5
|
+
hiddenQuickFilter?: boolean;
|
|
6
|
+
hiddenOtherFilter?: boolean;
|
|
7
|
+
onChange: (list: {
|
|
8
|
+
quickFilter: FilterItemProps[];
|
|
9
|
+
otherFilter: FilterItemProps[];
|
|
10
|
+
}) => void;
|
|
11
|
+
quickFilterMaxLength: number;
|
|
12
|
+
formFiltersPrefix: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FilterItemProps } from '../../types';
|
|
3
|
+
export declare type FilterValueType = {
|
|
4
|
+
quickFilter: FilterItemProps[];
|
|
5
|
+
otherFilter: FilterItemProps[];
|
|
6
|
+
/** 筛选项表单值,字段名 -> 值,与 Form 的 values 一致 */
|
|
7
|
+
values?: Record<string, any>;
|
|
8
|
+
};
|
|
9
|
+
export declare type FilterListProps = {
|
|
10
|
+
value?: FilterValueType;
|
|
11
|
+
hiddenQuickFilter?: boolean;
|
|
12
|
+
hiddenOtherFilter?: boolean;
|
|
13
|
+
onChange?: (value: FilterValueType) => void;
|
|
14
|
+
quickFilterMaxLength: number;
|
|
15
|
+
formFiltersPrefix: string;
|
|
16
|
+
renderItem?: (item: any, otherProps?: any) => React.ReactNode;
|
|
17
|
+
placement?: 'top' | 'left' | 'right' | 'bottom' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight' | 'leftTop' | 'leftBottom' | 'rightTop' | 'rightBottom';
|
|
18
|
+
/** 筛选按钮尺寸,与 antd Button size 一致 */
|
|
19
|
+
size?: 'small' | 'middle' | 'large';
|
|
20
|
+
/** 筛选触发按钮的 className,用于定制样式(如与设计系统对齐) */
|
|
21
|
+
buttonClassName?: string;
|
|
22
|
+
/** 筛选按钮文案,不传则使用 materials 内置多语言 */
|
|
23
|
+
buttonText?: string;
|
|
24
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { ModeType } from "../table/types";
|
|
2
|
+
/**
|
|
3
|
+
* 筛选总配置
|
|
4
|
+
*/
|
|
5
|
+
export declare type FilterType = {
|
|
6
|
+
/** 筛选是否展示 */
|
|
7
|
+
show: boolean;
|
|
8
|
+
/** 筛选项排序按钮是否展示 */
|
|
9
|
+
sortButtonShow: boolean;
|
|
10
|
+
/** 筛选列表 */
|
|
11
|
+
list: FilterItemProps[];
|
|
12
|
+
items?: string[];
|
|
13
|
+
/** 快速筛选最大长度 */
|
|
14
|
+
quickFilterMaxLength: number;
|
|
15
|
+
/** 配置存储模式 */
|
|
16
|
+
storageMode: "" | "localStorage";
|
|
17
|
+
/** 筛选列表项dom */
|
|
18
|
+
dom?: any;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* 筛选列表项配置
|
|
22
|
+
* - type 为 single/input/rangePicker 等时使用内置或映射组件
|
|
23
|
+
* - type 为 "custom" 时使用 other.component,组件接收 value/onChange(由 Form 注入)
|
|
24
|
+
*/
|
|
25
|
+
export declare type FilterItemProps = {
|
|
26
|
+
type: "single" | "input" | "datePicker" | "rangePicker" | "rangePickerNew" | "search" | "custom";
|
|
27
|
+
name?: string | string[];
|
|
28
|
+
key: string;
|
|
29
|
+
props?: object;
|
|
30
|
+
label?: string;
|
|
31
|
+
sort?: boolean;
|
|
32
|
+
localFilter?: boolean;
|
|
33
|
+
other: Record<string, any>;
|
|
34
|
+
isCustom?: boolean;
|
|
35
|
+
columnKey?: string;
|
|
36
|
+
isHidden?: boolean;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* 筛选组件属性
|
|
40
|
+
*/
|
|
41
|
+
export interface FilterProps {
|
|
42
|
+
filter: FilterType;
|
|
43
|
+
isRenderFormContent: boolean;
|
|
44
|
+
onValuesChange?: () => void;
|
|
45
|
+
tableId?: string;
|
|
46
|
+
viewMode?: ModeType;
|
|
47
|
+
isMobile?: boolean;
|
|
48
|
+
}
|