@pisell/materials 6.11.12 → 6.11.13
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/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +2 -2
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +3 -3
- package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +1 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +14 -14
- package/es/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +0 -1
- package/es/components/pisellDatePicker/index.d.ts +0 -1
- package/es/components/productCard/cartSkuCard/components/Gift/index.js +1 -1
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.js +5 -3
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.less +1 -1
- package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
- package/es/components/productCard/cartSkuCard/components/timeRange/index.js +1 -0
- package/es/components/productCard/cartSkuCard/index.js +5 -1
- package/es/components/productCard/components/Packages/utils.d.ts +1 -1
- package/es/components/table/Table/utils.d.ts +1 -1
- package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +1 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +14 -14
- package/lib/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +0 -1
- package/lib/components/pisellDatePicker/index.d.ts +0 -1
- package/lib/components/productCard/cartSkuCard/components/Gift/index.js +1 -1
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.js +7 -1
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.less +1 -1
- package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.js +1 -0
- package/lib/components/productCard/cartSkuCard/index.js +5 -1
- package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/package.json +3 -3
- package/es/components/PisellCards/components/GraphicTextCard/components/BadgeWrapper.d.ts +0 -5
- package/es/components/PisellCards/components/GraphicTextCard/components/TextContent.d.ts +0 -27
- package/es/components/PisellCards/components/GraphicTextCard/hooks/index.d.ts +0 -5
- package/es/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardClick.d.ts +0 -15
- package/es/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardStyle.d.ts +0 -18
- package/es/components/PisellCards/components/GraphicTextCard/types.d.ts +0 -290
- package/es/components/PisellCards/components/GraphicTextCard/utils/index.d.ts +0 -19
- package/es/components/PisellCards/components/MultilevelCard/components/PanelWrapper.d.ts +0 -7
- package/es/components/PisellCards/components/TextCard/TextCard.d.ts +0 -8
- package/es/components/PisellCards/components/TextCard/components/BadgeWrapper.d.ts +0 -26
- package/es/components/PisellCards/components/TextCard/components/IconWrapper.d.ts +0 -17
- package/es/components/PisellCards/components/TextCard/components/TextContent.d.ts +0 -21
- package/es/components/PisellCards/components/TextCard/components/index.d.ts +0 -6
- package/es/components/PisellCards/components/TextCard/index.d.ts +0 -5
- package/es/components/PisellCards/components/TextCard/types.d.ts +0 -270
- package/es/components/PisellSteps/PisellSteps.d.ts +0 -14
- package/es/components/PisellSuperTabs/PisellSuperTabs.d.ts +0 -8
- package/es/components/PisellSuperTabs/hooks/index.d.ts +0 -1
- package/es/components/PisellSuperTabs/hooks/useTabsState.d.ts +0 -7
- package/es/components/PisellSuperTabs/index.d.ts +0 -3
- package/es/components/PisellSuperTabs/types.d.ts +0 -212
- package/es/components/PisellTabbar/constants.d.ts +0 -47
- package/es/components/PisellTabbar/hooks/index.d.ts +0 -2
- package/es/components/PisellTabbar/hooks/useActiveKey.d.ts +0 -55
- package/es/components/PisellTabbar/hooks/useExpand.d.ts +0 -42
- package/es/components/PisellTabbar/template/Template1/constants.d.ts +0 -10
- package/es/components/PisellTabbar/template/Template1/utils/index.d.ts +0 -35
- package/es/components/PisellTabbar/types.d.ts +0 -90
- package/es/components/PisellTabbar/utils/index.d.ts +0 -69
- package/es/components/cardPro/index.d.ts +0 -4
- package/es/components/config-provider/index.d.ts +0 -10
- package/es/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +0 -26
- package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -27
- package/es/components/dataSourceComponents/fields/Upload/constants.d.ts +0 -9
- package/es/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +0 -15
- package/es/components/drag-sort-tree/TreeItem/index.d.ts +0 -19
- package/es/components/drag-sort-tree/index.d.ts +0 -5
- package/es/components/filter/components/Dropdown/types.d.ts +0 -13
- package/es/components/filter/components/FilterButton/types.d.ts +0 -24
- package/es/components/filter/types.d.ts +0 -48
- package/es/components/iconfont/index.d.ts +0 -8
- package/es/components/login-and-register/index.d.ts +0 -82
- package/es/components/pisell-config-provider/context.d.ts +0 -22
- package/es/components/pisellAdjustPrice/status.d.ts +0 -32
- package/es/components/pisellAdjustPrice/type.d.ts +0 -22
- package/es/components/pisellEmpty/index.d.ts +0 -19
- package/es/components/pisellFilter/type.d.ts +0 -5
- package/es/components/pisellGridPro/index.d.ts +0 -4
- package/es/components/pisellLookup/components/LookupTrigger.d.ts +0 -3
- package/es/components/pisellQuickFilter/type.d.ts +0 -12
- package/es/components/pisellStatisticList/index.d.ts +0 -22
- package/es/components/pisellToast/squareToast/index.d.ts +0 -15
- package/es/components/pisellToast/squareToast/methods.d.ts +0 -13
- package/es/components/pisellToast/squareToast/renderImperatively.d.ts +0 -28
- package/es/components/pisellToast/squareToast/toast.d.ts +0 -25
- package/es/components/productCard/cartSkuCard/components/Gift/types.d.ts +0 -29
- package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
- package/es/components/productCard/cartSkuCard/components/Promotion/index.d.ts +0 -7
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -36
- package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -46
- package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -9
- package/es/components/productCard/cartSkuCard/index.d.ts +0 -11
- package/es/components/productCard/cartSkuCard/locales.d.ts +0 -178
- package/es/components/productCard/components/Action/index.d.ts +0 -4
- package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -4
- package/es/components/productCard/locales.d.ts +0 -138
- package/es/components/productCard/status.d.ts +0 -32
- package/es/components/productCard/types.d.ts +0 -95
- package/es/components/select/index.d.ts +0 -9
- package/es/components/table/Actions/component/ViewMode/index.d.ts +0 -9
- package/es/components/table/Table/fields/select/Edit/index.d.ts +0 -4
- package/es/components/table/types.d.ts +0 -268
- package/es/components/translation/utils.d.ts +0 -9
- package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
- package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -15
- package/es/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
- package/es/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
- package/es/components/virtual-keyboard/Number/types.d.ts +0 -26
- package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
- package/es/locales/en-US.d.ts +0 -384
- package/es/locales/index.d.ts +0 -1
- package/es/locales/ja.d.ts +0 -348
- package/es/locales/pt.d.ts +0 -348
- package/es/locales/zh-CN.d.ts +0 -379
- package/es/locales/zh-TW.d.ts +0 -379
- package/lib/components/PisellCards/components/GraphicTextCard/components/BadgeWrapper.d.ts +0 -5
- package/lib/components/PisellCards/components/GraphicTextCard/components/TextContent.d.ts +0 -27
- package/lib/components/PisellCards/components/GraphicTextCard/hooks/index.d.ts +0 -5
- package/lib/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardClick.d.ts +0 -15
- package/lib/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardStyle.d.ts +0 -18
- package/lib/components/PisellCards/components/GraphicTextCard/types.d.ts +0 -290
- package/lib/components/PisellCards/components/GraphicTextCard/utils/index.d.ts +0 -19
- package/lib/components/PisellCards/components/MultilevelCard/components/PanelWrapper.d.ts +0 -7
- package/lib/components/PisellCards/components/TextCard/TextCard.d.ts +0 -8
- package/lib/components/PisellCards/components/TextCard/components/BadgeWrapper.d.ts +0 -26
- package/lib/components/PisellCards/components/TextCard/components/IconWrapper.d.ts +0 -17
- package/lib/components/PisellCards/components/TextCard/components/TextContent.d.ts +0 -21
- package/lib/components/PisellCards/components/TextCard/components/index.d.ts +0 -6
- package/lib/components/PisellCards/components/TextCard/index.d.ts +0 -5
- package/lib/components/PisellCards/components/TextCard/types.d.ts +0 -270
- package/lib/components/PisellSteps/PisellSteps.d.ts +0 -14
- package/lib/components/PisellSuperTabs/PisellSuperTabs.d.ts +0 -8
- package/lib/components/PisellSuperTabs/hooks/index.d.ts +0 -1
- package/lib/components/PisellSuperTabs/hooks/useTabsState.d.ts +0 -7
- package/lib/components/PisellSuperTabs/index.d.ts +0 -3
- package/lib/components/PisellSuperTabs/types.d.ts +0 -212
- package/lib/components/PisellTabbar/constants.d.ts +0 -47
- package/lib/components/PisellTabbar/hooks/index.d.ts +0 -2
- package/lib/components/PisellTabbar/hooks/useActiveKey.d.ts +0 -55
- package/lib/components/PisellTabbar/hooks/useExpand.d.ts +0 -42
- package/lib/components/PisellTabbar/template/Template1/constants.d.ts +0 -10
- package/lib/components/PisellTabbar/template/Template1/utils/index.d.ts +0 -35
- package/lib/components/PisellTabbar/types.d.ts +0 -90
- package/lib/components/PisellTabbar/utils/index.d.ts +0 -69
- package/lib/components/cardPro/index.d.ts +0 -4
- package/lib/components/config-provider/index.d.ts +0 -10
- package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +0 -26
- package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -27
- package/lib/components/dataSourceComponents/fields/Upload/constants.d.ts +0 -9
- package/lib/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +0 -15
- package/lib/components/drag-sort-tree/TreeItem/index.d.ts +0 -19
- package/lib/components/drag-sort-tree/index.d.ts +0 -5
- package/lib/components/filter/components/Dropdown/types.d.ts +0 -13
- package/lib/components/filter/components/FilterButton/types.d.ts +0 -24
- package/lib/components/filter/types.d.ts +0 -48
- package/lib/components/iconfont/index.d.ts +0 -8
- package/lib/components/login-and-register/index.d.ts +0 -82
- package/lib/components/pisell-config-provider/context.d.ts +0 -22
- package/lib/components/pisellAdjustPrice/status.d.ts +0 -32
- package/lib/components/pisellAdjustPrice/type.d.ts +0 -22
- package/lib/components/pisellEmpty/index.d.ts +0 -19
- package/lib/components/pisellFilter/type.d.ts +0 -5
- package/lib/components/pisellGridPro/index.d.ts +0 -4
- package/lib/components/pisellLookup/components/LookupTrigger.d.ts +0 -3
- package/lib/components/pisellQuickFilter/type.d.ts +0 -12
- package/lib/components/pisellStatisticList/index.d.ts +0 -22
- package/lib/components/pisellToast/squareToast/index.d.ts +0 -15
- package/lib/components/pisellToast/squareToast/methods.d.ts +0 -13
- package/lib/components/pisellToast/squareToast/renderImperatively.d.ts +0 -28
- package/lib/components/pisellToast/squareToast/toast.d.ts +0 -25
- package/lib/components/productCard/cartSkuCard/components/Gift/types.d.ts +0 -29
- package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
- package/lib/components/productCard/cartSkuCard/components/Promotion/index.d.ts +0 -7
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -36
- package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -46
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -9
- package/lib/components/productCard/cartSkuCard/index.d.ts +0 -11
- package/lib/components/productCard/cartSkuCard/locales.d.ts +0 -178
- package/lib/components/productCard/components/Action/index.d.ts +0 -4
- package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -4
- package/lib/components/productCard/locales.d.ts +0 -138
- package/lib/components/productCard/status.d.ts +0 -32
- package/lib/components/productCard/types.d.ts +0 -95
- package/lib/components/select/index.d.ts +0 -9
- package/lib/components/table/Actions/component/ViewMode/index.d.ts +0 -9
- package/lib/components/table/Table/fields/select/Edit/index.d.ts +0 -4
- package/lib/components/table/types.d.ts +0 -268
- package/lib/components/translation/utils.d.ts +0 -9
- package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -15
- package/lib/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
- package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
- package/lib/components/virtual-keyboard/Number/types.d.ts +0 -26
- package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
- package/lib/locales/en-US.d.ts +0 -384
- package/lib/locales/index.d.ts +0 -1
- package/lib/locales/ja.d.ts +0 -348
- package/lib/locales/pt.d.ts +0 -348
- package/lib/locales/zh-CN.d.ts +0 -379
- package/lib/locales/zh-TW.d.ts +0 -379
|
@@ -1,290 +0,0 @@
|
|
|
1
|
-
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import { PisellBasicCardProps } from '../../types';
|
|
3
|
-
import { PisellImageCardProps } from '../PisellImageCard/types';
|
|
4
|
-
/**
|
|
5
|
-
* 样式变体类型
|
|
6
|
-
*/
|
|
7
|
-
export declare type GraphicTextCardVariant = 'vertical-image' | 'vertical-icon' | 'horizontal' | 'card';
|
|
8
|
-
/**
|
|
9
|
-
* 尺寸类型
|
|
10
|
-
*/
|
|
11
|
-
export declare type GraphicTextCardSize = 'small' | 'default' | 'large';
|
|
12
|
-
/**
|
|
13
|
-
* 宽度模式
|
|
14
|
-
*/
|
|
15
|
-
export declare type GraphicTextCardWidthMode = 'auto' | 'fixed' | 'full';
|
|
16
|
-
/**
|
|
17
|
-
* 图形区域配置
|
|
18
|
-
*/
|
|
19
|
-
export interface GraphicConfig extends PisellImageCardProps {
|
|
20
|
-
hidden?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* 图形区域宽度(单位:px)
|
|
23
|
-
* 如不设置,将根据 variant 和 size 自动计算
|
|
24
|
-
*/
|
|
25
|
-
width?: number;
|
|
26
|
-
/**
|
|
27
|
-
* 图形区域高度(单位:px)
|
|
28
|
-
* 如不设置,将根据 variant 和 size 自动计算
|
|
29
|
-
*/
|
|
30
|
-
height?: number;
|
|
31
|
-
/**
|
|
32
|
-
* 图形区域圆角
|
|
33
|
-
*/
|
|
34
|
-
borderRadius?: number | string;
|
|
35
|
-
/**
|
|
36
|
-
* 图形区域背景色
|
|
37
|
-
*/
|
|
38
|
-
background?: string;
|
|
39
|
-
/**
|
|
40
|
-
* 图形区域边框
|
|
41
|
-
*/
|
|
42
|
-
border?: string;
|
|
43
|
-
/**
|
|
44
|
-
* 图形区域阴影
|
|
45
|
-
*/
|
|
46
|
-
boxShadow?: string;
|
|
47
|
-
/**
|
|
48
|
-
* 图形区域内边距
|
|
49
|
-
*/
|
|
50
|
-
padding?: number | string;
|
|
51
|
-
/**
|
|
52
|
-
* 图标大小(当使用 icon 时有效,单位:px)
|
|
53
|
-
*/
|
|
54
|
-
iconSize?: number;
|
|
55
|
-
/**
|
|
56
|
-
* 图标颜色(当使用 icon 时有效)
|
|
57
|
-
*/
|
|
58
|
-
iconColor?: string;
|
|
59
|
-
/**
|
|
60
|
-
* 自定义样式
|
|
61
|
-
*/
|
|
62
|
-
style?: CSSProperties;
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* 角标类型
|
|
66
|
-
*/
|
|
67
|
-
export declare type BadgeType = 'dot' | 'number' | 'text';
|
|
68
|
-
/**
|
|
69
|
-
* 角标位置
|
|
70
|
-
*/
|
|
71
|
-
export declare type BadgePosition = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
|
|
72
|
-
/**
|
|
73
|
-
* 角标配置
|
|
74
|
-
*/
|
|
75
|
-
export interface BadgeConfig {
|
|
76
|
-
/**
|
|
77
|
-
* 角标类型
|
|
78
|
-
* @default 'dot'
|
|
79
|
-
*/
|
|
80
|
-
type?: BadgeType;
|
|
81
|
-
/**
|
|
82
|
-
* 角标内容(数字或文本)
|
|
83
|
-
* 当 type 为 'number' 或 'text' 时有效
|
|
84
|
-
*/
|
|
85
|
-
content?: ReactNode;
|
|
86
|
-
/**
|
|
87
|
-
* 角标位置
|
|
88
|
-
* @default 'top-right'
|
|
89
|
-
*/
|
|
90
|
-
position?: BadgePosition;
|
|
91
|
-
/**
|
|
92
|
-
* 角标偏移量 [x, y]
|
|
93
|
-
* 正数向右/下偏移,负数向左/上偏移
|
|
94
|
-
*/
|
|
95
|
-
offset?: [number, number];
|
|
96
|
-
/**
|
|
97
|
-
* 角标颜色
|
|
98
|
-
*/
|
|
99
|
-
color?: string;
|
|
100
|
-
/**
|
|
101
|
-
* 角标自定义样式
|
|
102
|
-
*/
|
|
103
|
-
style?: CSSProperties;
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* 文本配置
|
|
107
|
-
*/
|
|
108
|
-
export interface TextConfig {
|
|
109
|
-
/**
|
|
110
|
-
* 字体大小(单位:px)
|
|
111
|
-
*/
|
|
112
|
-
fontSize?: number;
|
|
113
|
-
/**
|
|
114
|
-
* 字体粗细
|
|
115
|
-
*/
|
|
116
|
-
fontWeight?: string | number;
|
|
117
|
-
/**
|
|
118
|
-
* 文本颜色
|
|
119
|
-
*/
|
|
120
|
-
color?: string;
|
|
121
|
-
/**
|
|
122
|
-
* 最大显示行数
|
|
123
|
-
* @default 1
|
|
124
|
-
*/
|
|
125
|
-
maxLines?: number;
|
|
126
|
-
/**
|
|
127
|
-
* 是否显示省略号
|
|
128
|
-
* @default true
|
|
129
|
-
*/
|
|
130
|
-
ellipsis?: boolean;
|
|
131
|
-
/**
|
|
132
|
-
* 文本对齐方式
|
|
133
|
-
* @default 'left'
|
|
134
|
-
*/
|
|
135
|
-
textAlign?: 'left' | 'center' | 'right';
|
|
136
|
-
}
|
|
137
|
-
/**
|
|
138
|
-
* GraphicTextCard 组件 Props
|
|
139
|
-
* 基于 PisellBasicCardProps 扩展
|
|
140
|
-
* 注意:重写 onClick 为可选属性
|
|
141
|
-
*/
|
|
142
|
-
export interface GraphicTextCardProps extends Omit<PisellBasicCardProps, 'onClick'> {
|
|
143
|
-
/**
|
|
144
|
-
* 卡片显示的文本内容(必填)
|
|
145
|
-
*/
|
|
146
|
-
text: ReactNode;
|
|
147
|
-
/**
|
|
148
|
-
* 卡片样式变体
|
|
149
|
-
* @default 'vertical-image'
|
|
150
|
-
*/
|
|
151
|
-
variant?: GraphicTextCardVariant;
|
|
152
|
-
/**
|
|
153
|
-
* 卡片尺寸
|
|
154
|
-
* @default 'default'
|
|
155
|
-
*/
|
|
156
|
-
size?: GraphicTextCardSize;
|
|
157
|
-
/**
|
|
158
|
-
* 是否可点击
|
|
159
|
-
* @default true
|
|
160
|
-
*/
|
|
161
|
-
clickable?: boolean;
|
|
162
|
-
/**
|
|
163
|
-
* 图片地址
|
|
164
|
-
* 与 icon 二选一,优先使用 image
|
|
165
|
-
*/
|
|
166
|
-
image?: string;
|
|
167
|
-
/**
|
|
168
|
-
* 图标
|
|
169
|
-
* 支持 ReactNode(如 antd Icon、svg 等)或图标 URL
|
|
170
|
-
* 与 image 二选一
|
|
171
|
-
*/
|
|
172
|
-
icon?: ReactNode;
|
|
173
|
-
/**
|
|
174
|
-
* 图形区域配置
|
|
175
|
-
* 用于自定义图形区域的样式和尺寸
|
|
176
|
-
*/
|
|
177
|
-
graphicConfig?: GraphicConfig;
|
|
178
|
-
/**
|
|
179
|
-
* 图形区域插槽
|
|
180
|
-
* 用于完全自定义图形区域,优先级高于 image 和 icon
|
|
181
|
-
*/
|
|
182
|
-
graphicSlot?: ReactNode;
|
|
183
|
-
/**
|
|
184
|
-
* 角标配置
|
|
185
|
-
* 用于显示红点、数字或文本提示
|
|
186
|
-
*/
|
|
187
|
-
badge?: BadgeConfig;
|
|
188
|
-
/**
|
|
189
|
-
* 前置插槽
|
|
190
|
-
* 用于在图形区域前添加自定义内容
|
|
191
|
-
*/
|
|
192
|
-
prefixSlot?: ReactNode;
|
|
193
|
-
/**
|
|
194
|
-
* 后置插槽
|
|
195
|
-
* 用于在文本内容后添加自定义内容
|
|
196
|
-
*/
|
|
197
|
-
suffixSlot?: ReactNode;
|
|
198
|
-
/**
|
|
199
|
-
* 文本配置
|
|
200
|
-
* 用于自定义文本样式和显示行为
|
|
201
|
-
*/
|
|
202
|
-
textConfig?: TextConfig;
|
|
203
|
-
/**
|
|
204
|
-
* 宽度模式
|
|
205
|
-
* - auto: 内容撑满,最大宽度 maxWidth
|
|
206
|
-
* - fixed: 固定宽度 width
|
|
207
|
-
* - full: 撑满父容器
|
|
208
|
-
* @default 'auto'
|
|
209
|
-
*/
|
|
210
|
-
widthMode?: GraphicTextCardWidthMode;
|
|
211
|
-
/**
|
|
212
|
-
* 固定宽度值
|
|
213
|
-
* 当 widthMode='fixed' 时有效
|
|
214
|
-
*/
|
|
215
|
-
width?: number | string;
|
|
216
|
-
/**
|
|
217
|
-
* 最大宽度
|
|
218
|
-
* 当 widthMode='auto' 时有效
|
|
219
|
-
* @default 400
|
|
220
|
-
*/
|
|
221
|
-
maxWidth?: number | string;
|
|
222
|
-
/**
|
|
223
|
-
* 点击事件
|
|
224
|
-
* 当 clickable=true 且不在 disabled/loading 状态时触发
|
|
225
|
-
* 注意:PisellBasicCardProps 中的 onClick 是必填的,这里重新定义为可选
|
|
226
|
-
*/
|
|
227
|
-
onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
228
|
-
/**
|
|
229
|
-
* 自定义渲染函数
|
|
230
|
-
* 完全自定义组件的渲染内容
|
|
231
|
-
* 当提供此函数时,组件内置的渲染逻辑将被忽略
|
|
232
|
-
*/
|
|
233
|
-
render?: (props: GraphicTextCardProps) => ReactNode;
|
|
234
|
-
}
|
|
235
|
-
/**
|
|
236
|
-
* GraphicArea 组件 Props
|
|
237
|
-
* 图形区域子组件
|
|
238
|
-
*/
|
|
239
|
-
export interface GraphicAreaProps {
|
|
240
|
-
/**
|
|
241
|
-
* 图片地址
|
|
242
|
-
*/
|
|
243
|
-
image?: string;
|
|
244
|
-
/**
|
|
245
|
-
* 图标内容
|
|
246
|
-
*/
|
|
247
|
-
icon?: ReactNode;
|
|
248
|
-
/**
|
|
249
|
-
* 图形配置
|
|
250
|
-
*/
|
|
251
|
-
config?: GraphicConfig;
|
|
252
|
-
/**
|
|
253
|
-
* 自定义类名
|
|
254
|
-
*/
|
|
255
|
-
className?: string;
|
|
256
|
-
aliWidth?: number;
|
|
257
|
-
}
|
|
258
|
-
/**
|
|
259
|
-
* TextContent 组件 Props
|
|
260
|
-
* 文本内容子组件
|
|
261
|
-
*/
|
|
262
|
-
export interface TextContentProps {
|
|
263
|
-
/**
|
|
264
|
-
* 文本内容
|
|
265
|
-
*/
|
|
266
|
-
text: ReactNode;
|
|
267
|
-
/**
|
|
268
|
-
* 文本配置
|
|
269
|
-
*/
|
|
270
|
-
textConfig?: TextConfig;
|
|
271
|
-
/**
|
|
272
|
-
* 自定义类名
|
|
273
|
-
*/
|
|
274
|
-
className?: string;
|
|
275
|
-
active: PisellBasicCardProps['active'];
|
|
276
|
-
}
|
|
277
|
-
/**
|
|
278
|
-
* BadgeWrapper 组件 Props
|
|
279
|
-
* 角标包装子组件
|
|
280
|
-
*/
|
|
281
|
-
export interface BadgeWrapperProps {
|
|
282
|
-
/**
|
|
283
|
-
* 角标配置
|
|
284
|
-
*/
|
|
285
|
-
badge?: BadgeConfig;
|
|
286
|
-
/**
|
|
287
|
-
* 子元素
|
|
288
|
-
*/
|
|
289
|
-
children: ReactNode;
|
|
290
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { GraphicTextCardVariant, GraphicTextCardSize } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* 获取图形区域的默认尺寸
|
|
4
|
-
* 根据样式变体和尺寸返回对应的默认宽高
|
|
5
|
-
*
|
|
6
|
-
* @param variant - 样式变体
|
|
7
|
-
* @param size - 尺寸
|
|
8
|
-
* @returns 默认的宽度和高度
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```ts
|
|
12
|
-
* const size = getDefaultGraphicSize('vertical-image', 'default');
|
|
13
|
-
* // 返回 { width: 36, height: 36 }
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
|
-
export declare const getDefaultGraphicSize: (variant: GraphicTextCardVariant, size: GraphicTextCardSize) => {
|
|
17
|
-
width: number | string;
|
|
18
|
-
height: number | string;
|
|
19
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
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;
|
|
@@ -1,17 +0,0 @@
|
|
|
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;
|
|
@@ -1,21 +0,0 @@
|
|
|
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;
|
|
@@ -1,270 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './PisellSteps.less';
|
|
3
|
-
import type { PisellStepsProps } from './types';
|
|
4
|
-
/**
|
|
5
|
-
* PisellSteps 步骤条组件
|
|
6
|
-
*
|
|
7
|
-
* 基于 Ant Design Steps 组件进行二次封装和增强
|
|
8
|
-
* 支持多种展示样式、布局方式和丰富的交互功能
|
|
9
|
-
*
|
|
10
|
-
* @author Pisell Team
|
|
11
|
-
* @version 1.0.0
|
|
12
|
-
*/
|
|
13
|
-
declare const PisellSteps: React.FC<PisellStepsProps>;
|
|
14
|
-
export default PisellSteps;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './PisellSuperTabs.less';
|
|
3
|
-
import type { PisellSuperTabsProps } from './types';
|
|
4
|
-
interface PisellSuperTabsRef {
|
|
5
|
-
scrollItemByRowKey: (key: string) => void;
|
|
6
|
-
}
|
|
7
|
-
declare const _default: React.ForwardRefExoticComponent<PisellSuperTabsProps<unknown> & React.RefAttributes<PisellSuperTabsRef>>;
|
|
8
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { useTabsState } from './useTabsState';
|