lingee-ui 0.0.24 → 0.0.26
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/README.md +3 -2
- package/dist/button/index.d.mts +1 -1
- package/dist/button/index.d.ts +1 -1
- package/dist/chunk-CATPKTPR.mjs +1 -0
- package/dist/{chunk-UERX2ELG.js → chunk-ENYYJ7ES.js} +1 -1
- package/dist/{chunk-BSZVT2WO.js → chunk-IVBJOGYS.js} +1 -1
- package/dist/chunk-TDJG7ZB6.js +1 -0
- package/dist/{chunk-PSF4FKBF.js → chunk-VKZD4ESR.js} +1 -1
- package/dist/{chunk-XLUVO6OV.mjs → chunk-VLFNSJ2J.mjs} +1 -1
- package/dist/{chunk-TZBVVMLM.mjs → chunk-XVM4RPVQ.mjs} +1 -1
- package/dist/{chunk-IJJQRKPH.mjs → chunk-Y463GZ2F.mjs} +1 -1
- package/dist/{index-7pb5YOcq.d.mts → index-BVXwKHfX.d.mts} +1 -1
- package/dist/{index-7pb5YOcq.d.ts → index-BVXwKHfX.d.ts} +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.mts +266 -11
- package/dist/index.d.ts +266 -11
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/dist/input/index.js +1 -1
- package/dist/input/index.mjs +1 -1
- package/dist/tabs/index.css +1 -1
- package/dist/tabs/index.d.mts +1 -1
- package/dist/tabs/index.d.ts +1 -1
- package/dist/tabs/index.js +1 -1
- package/dist/tabs/index.mjs +1 -1
- package/dist/toast/index.js +1 -1
- package/dist/toast/index.mjs +1 -1
- package/dist/tokens.css +1 -1
- package/dist/tree/index.css +1 -1
- package/dist/tree/index.js +1 -1
- package/dist/tree/index.mjs +1 -1
- package/package.json +1 -1
- package/skill/AGENTS-SNIPPET.md +38 -10
- package/skill/SKILL.md +14 -11
- package/skill/VERSION.json +5 -5
- package/skill/references/components/cascader.md +97 -0
- package/skill/references/components/color-picker.md +11 -4
- package/skill/references/components/date-picker.md +1 -1
- package/skill/references/components/dialog.md +1 -1
- package/skill/references/components/drawer.md +1 -1
- package/skill/references/components/scroll-area.md +2 -2
- package/skill/references/components/slider.md +1 -1
- package/skill/references/components/table.md +2 -1
- package/skill/references/components/timeline.md +75 -0
- package/skill/references/components/tree-select.md +86 -0
- package/skill/references/components/upload.md +2 -1
- package/skill/references/icons.md +5 -3
- package/skill/references/setup.md +11 -3
- package/skill/references/tokens.md +36 -9
- package/dist/chunk-BNUZ57QH.mjs +0 -1
- package/dist/chunk-JYFAP23O.js +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { B as ButtonProps } from './index-
|
|
2
|
-
export { a as Button, b as ButtonShape, c as ButtonSize, d as ButtonVariant } from './index-
|
|
1
|
+
import { B as ButtonProps } from './index-BVXwKHfX.js';
|
|
2
|
+
export { a as Button, b as ButtonShape, c as ButtonSize, d as ButtonVariant } from './index-BVXwKHfX.js';
|
|
3
3
|
import * as React$1 from 'react';
|
|
4
|
-
import React__default, { ReactNode, MouseEvent, CSSProperties, HTMLAttributes, ComponentType, Key, ReactElement, UIEventHandler, Ref } from 'react';
|
|
4
|
+
import React__default, { ReactNode, MouseEvent, CSSProperties, HTMLAttributes, ComponentType, Key, ElementType, ReactElement, UIEventHandler, Ref } from 'react';
|
|
5
5
|
import { TooltipProps } from './tooltip/index.js';
|
|
6
6
|
export { Tooltip, TooltipPlacement } from './tooltip/index.js';
|
|
7
7
|
export { TabItem, Tabs, TabsOverflow, TabsProps, TabsScrollOptions, TabsSize, TabsVariant } from './tabs/index.js';
|
|
@@ -266,9 +266,18 @@ declare const zhCN: {
|
|
|
266
266
|
removeShort: string;
|
|
267
267
|
dragText: string;
|
|
268
268
|
clickUpload: string;
|
|
269
|
+
upload: string;
|
|
270
|
+
};
|
|
271
|
+
Cascader: {
|
|
272
|
+
empty: string;
|
|
273
|
+
};
|
|
274
|
+
TreeSelect: {
|
|
275
|
+
empty: string;
|
|
269
276
|
};
|
|
270
277
|
ColorPicker: {
|
|
271
278
|
placeholder: string;
|
|
279
|
+
hexInput: string;
|
|
280
|
+
alphaInput: string;
|
|
272
281
|
};
|
|
273
282
|
DatePicker: {
|
|
274
283
|
placeholder: string;
|
|
@@ -451,9 +460,18 @@ declare const enUS: {
|
|
|
451
460
|
removeShort: string;
|
|
452
461
|
dragText: string;
|
|
453
462
|
clickUpload: string;
|
|
463
|
+
upload: string;
|
|
464
|
+
};
|
|
465
|
+
Cascader: {
|
|
466
|
+
empty: string;
|
|
467
|
+
};
|
|
468
|
+
TreeSelect: {
|
|
469
|
+
empty: string;
|
|
454
470
|
};
|
|
455
471
|
ColorPicker: {
|
|
456
472
|
placeholder: string;
|
|
473
|
+
hexInput: string;
|
|
474
|
+
alphaInput: string;
|
|
457
475
|
};
|
|
458
476
|
DatePicker: {
|
|
459
477
|
placeholder: string;
|
|
@@ -2949,6 +2967,21 @@ interface TableStatusText {
|
|
|
2949
2967
|
empty?: ReactNode;
|
|
2950
2968
|
error?: ReactNode;
|
|
2951
2969
|
}
|
|
2970
|
+
/** 可替换的表格内部元素,结构同 rc-table 的 components */
|
|
2971
|
+
interface TableComponents {
|
|
2972
|
+
header?: {
|
|
2973
|
+
wrapper?: ElementType;
|
|
2974
|
+
row?: ElementType;
|
|
2975
|
+
/** 表头单元格,接收列 `onHeaderCell` 返回的属性,可用于实现拖拽调宽等 */
|
|
2976
|
+
cell?: ElementType;
|
|
2977
|
+
};
|
|
2978
|
+
body?: {
|
|
2979
|
+
wrapper?: ElementType;
|
|
2980
|
+
row?: ElementType;
|
|
2981
|
+
/** 表体单元格,接收列 `onCell` 返回的属性 */
|
|
2982
|
+
cell?: ElementType;
|
|
2983
|
+
};
|
|
2984
|
+
}
|
|
2952
2985
|
/**
|
|
2953
2986
|
* Table 组件 Props
|
|
2954
2987
|
*/
|
|
@@ -3006,12 +3039,200 @@ interface TableProps<RecordType = any> {
|
|
|
3006
3039
|
striped?: boolean;
|
|
3007
3040
|
/** 行 hover 高亮 */
|
|
3008
3041
|
hoverable?: boolean;
|
|
3042
|
+
/**
|
|
3043
|
+
* 替换表格内部元素的渲染组件(如自定义表头单元格实现拖拽调宽)。
|
|
3044
|
+
* 需保持引用稳定,每次渲染传新对象会让对应元素整体重建
|
|
3045
|
+
*/
|
|
3046
|
+
components?: TableComponents;
|
|
3009
3047
|
}
|
|
3010
3048
|
|
|
3011
3049
|
declare const Table: <RecordType = any>(props: TableProps<RecordType> & {
|
|
3012
3050
|
ref?: React__default.Ref<HTMLDivElement>;
|
|
3013
3051
|
}) => React__default.ReactElement | null;
|
|
3014
3052
|
|
|
3053
|
+
/**
|
|
3054
|
+
* 节点状态,决定圆点颜色:default 未开始、processing 进行中、completed 已完成、
|
|
3055
|
+
* unfinished 未完成、disabled 不可用(左侧时间同时置灰)
|
|
3056
|
+
*/
|
|
3057
|
+
type TimelineStatus = "default" | "processing" | "completed" | "unfinished" | "disabled";
|
|
3058
|
+
/** 时间轴节点,未声明的属性原样落到 <li> 上(如 aria-current) */
|
|
3059
|
+
interface TimelineItem extends Omit<HTMLAttributes<HTMLLIElement>, "content" | "color"> {
|
|
3060
|
+
/** 唯一标识,缺省用索引 */
|
|
3061
|
+
key?: Key;
|
|
3062
|
+
/** 节点左侧的时间或标签,右对齐;任一节点传了,所有节点都会留出这一列 */
|
|
3063
|
+
time?: ReactNode;
|
|
3064
|
+
/** 节点内容 */
|
|
3065
|
+
content?: ReactNode;
|
|
3066
|
+
/** 节点状态,决定圆点颜色,默认 "default" */
|
|
3067
|
+
status?: TimelineStatus;
|
|
3068
|
+
/** 自定义圆点颜色,优先于 status;传语义 Token 可随主题切换 */
|
|
3069
|
+
color?: string;
|
|
3070
|
+
/** 是否实心圆点 */
|
|
3071
|
+
filled?: boolean;
|
|
3072
|
+
}
|
|
3073
|
+
interface TimelineProps {
|
|
3074
|
+
/** 节点数据 */
|
|
3075
|
+
items: TimelineItem[];
|
|
3076
|
+
/** 自定义类名 */
|
|
3077
|
+
className?: string;
|
|
3078
|
+
/** 自定义样式 */
|
|
3079
|
+
style?: CSSProperties;
|
|
3080
|
+
}
|
|
3081
|
+
/** 卡片状态:processing 主色描边,completed 整体置灰 */
|
|
3082
|
+
type TimelineCardStatus = "default" | "processing" | "completed";
|
|
3083
|
+
/** 时间轴内容卡片,未声明的属性原样落到根节点 */
|
|
3084
|
+
interface TimelineCardProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
|
|
3085
|
+
/** 卡片顶部的时间段,如日程的起止时间 */
|
|
3086
|
+
time?: ReactNode;
|
|
3087
|
+
/** 右上角内容,如状态标签;有 time 时与它同行,否则放在标题行末尾 */
|
|
3088
|
+
extra?: ReactNode;
|
|
3089
|
+
/** 标题 */
|
|
3090
|
+
title?: ReactNode;
|
|
3091
|
+
/** 标题最多显示的行数,超出省略,默认 1 */
|
|
3092
|
+
titleLines?: number;
|
|
3093
|
+
/** 紧跟标题的标签 */
|
|
3094
|
+
tag?: ReactNode;
|
|
3095
|
+
/** 描述 */
|
|
3096
|
+
description?: ReactNode;
|
|
3097
|
+
/** 描述最多显示的行数,超出省略,默认 2 */
|
|
3098
|
+
descriptionLines?: number;
|
|
3099
|
+
/** 底部内容,如操作或附加信息 */
|
|
3100
|
+
footer?: ReactNode;
|
|
3101
|
+
/** 卡片状态,默认 "default" */
|
|
3102
|
+
status?: TimelineCardStatus;
|
|
3103
|
+
/** 悬停时高亮背景,可点击的卡片开启 */
|
|
3104
|
+
hoverable?: boolean;
|
|
3105
|
+
}
|
|
3106
|
+
|
|
3107
|
+
/**
|
|
3108
|
+
* TimelineCard 时间轴内容卡片
|
|
3109
|
+
* 作为 Timeline 节点的 content 直接传入时,节点的时间与圆点会下移卡片内边距,对齐卡片首行
|
|
3110
|
+
*/
|
|
3111
|
+
declare const TimelineCard: React__default.ForwardRefExoticComponent<TimelineCardProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
3112
|
+
|
|
3113
|
+
/** 用 Object.assign 挂载子组件,保留 forwardRef 类型,<Timeline ref={...} /> 仍可直接使用 */
|
|
3114
|
+
declare const Timeline: React__default.ForwardRefExoticComponent<TimelineProps & React__default.RefAttributes<HTMLOListElement>> & {
|
|
3115
|
+
Card: React__default.ForwardRefExoticComponent<TimelineCardProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
3116
|
+
};
|
|
3117
|
+
|
|
3118
|
+
type TreeSelectSize = SelectSize;
|
|
3119
|
+
/** 树选择节点 */
|
|
3120
|
+
interface TreeSelectNode {
|
|
3121
|
+
/** 节点值,同一棵树内需唯一 */
|
|
3122
|
+
value: string;
|
|
3123
|
+
/** 节点标题,选中后同时作为触发器中的文本 */
|
|
3124
|
+
title: ReactNode;
|
|
3125
|
+
/** 子节点 */
|
|
3126
|
+
children?: TreeSelectNode[];
|
|
3127
|
+
/** 是否禁用 */
|
|
3128
|
+
disabled?: boolean;
|
|
3129
|
+
}
|
|
3130
|
+
/** 下拉面板配置 */
|
|
3131
|
+
interface TreeSelectDropdownProps {
|
|
3132
|
+
/** 面板最大高度(px),超出时滚动,默认 346 */
|
|
3133
|
+
maxHeight?: number;
|
|
3134
|
+
/** 面板宽度(px),`"auto"` 时按内容自适应,默认与触发器同宽 */
|
|
3135
|
+
width?: number | "auto";
|
|
3136
|
+
/** 下拉浮层的自定义类名 */
|
|
3137
|
+
className?: string;
|
|
3138
|
+
/** Portal 挂载容器,传 `null` 时就地渲染 */
|
|
3139
|
+
container?: HTMLElement | null;
|
|
3140
|
+
}
|
|
3141
|
+
interface TreeSelectProps {
|
|
3142
|
+
/** 树形数据 */
|
|
3143
|
+
treeData: TreeSelectNode[];
|
|
3144
|
+
/** 当前选中值(受控);显式传 `undefined` 也视为受控的空值 */
|
|
3145
|
+
value?: string;
|
|
3146
|
+
/** 默认选中值(非受控) */
|
|
3147
|
+
defaultValue?: string;
|
|
3148
|
+
/** 选中或清空时回调,清空时两个参数均为 `undefined` */
|
|
3149
|
+
onChange?: (value: string | undefined, node: TreeSelectNode | undefined) => void;
|
|
3150
|
+
/** 占位文本 */
|
|
3151
|
+
placeholder?: string;
|
|
3152
|
+
/** 是否禁用 */
|
|
3153
|
+
disabled?: boolean;
|
|
3154
|
+
/** 是否错误态 */
|
|
3155
|
+
error?: boolean;
|
|
3156
|
+
/** 是否可清空 */
|
|
3157
|
+
allowClear?: boolean;
|
|
3158
|
+
/** 尺寸,默认 "md" */
|
|
3159
|
+
size?: TreeSelectSize;
|
|
3160
|
+
/** 是否默认展开全部节点 */
|
|
3161
|
+
defaultExpandAll?: boolean;
|
|
3162
|
+
/** 无数据时面板中展示的内容 */
|
|
3163
|
+
notFoundContent?: ReactNode;
|
|
3164
|
+
/** 下拉面板配置 */
|
|
3165
|
+
dropdown?: TreeSelectDropdownProps;
|
|
3166
|
+
/** 自定义类名 */
|
|
3167
|
+
className?: string;
|
|
3168
|
+
/** 自定义样式 */
|
|
3169
|
+
style?: CSSProperties;
|
|
3170
|
+
}
|
|
3171
|
+
|
|
3172
|
+
/**
|
|
3173
|
+
* TreeSelect 树选择
|
|
3174
|
+
* 触发器与面板外观沿用 Select,面板内用 Tree 展示层级,单选
|
|
3175
|
+
*/
|
|
3176
|
+
declare const TreeSelect: React__default.ForwardRefExoticComponent<TreeSelectProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
3177
|
+
|
|
3178
|
+
type CascaderSize = SelectSize;
|
|
3179
|
+
/** 级联选项 */
|
|
3180
|
+
interface CascaderOption {
|
|
3181
|
+
/** 选项值,同一层级内需唯一 */
|
|
3182
|
+
value: string;
|
|
3183
|
+
/** 选项文本,选中后按层级拼接显示在触发器中 */
|
|
3184
|
+
label: ReactNode;
|
|
3185
|
+
/** 下一级选项,有值时点击展开下一列而不是直接选中 */
|
|
3186
|
+
children?: CascaderOption[];
|
|
3187
|
+
/** 是否禁用 */
|
|
3188
|
+
disabled?: boolean;
|
|
3189
|
+
}
|
|
3190
|
+
/** 下拉面板配置 */
|
|
3191
|
+
interface CascaderDropdownProps {
|
|
3192
|
+
/** 每列的最大高度(px),超出时该列滚动,默认 346(约 10 项);同时不超出视口可用高度 */
|
|
3193
|
+
maxHeight?: number;
|
|
3194
|
+
/** 下拉浮层的自定义类名 */
|
|
3195
|
+
className?: string;
|
|
3196
|
+
/** Portal 挂载容器,传 `null` 时就地渲染 */
|
|
3197
|
+
container?: HTMLElement | null;
|
|
3198
|
+
}
|
|
3199
|
+
interface CascaderProps {
|
|
3200
|
+
/** 级联数据 */
|
|
3201
|
+
options: CascaderOption[];
|
|
3202
|
+
/** 当前选中路径(受控),自根到叶的 value 数组;显式传 `undefined` 也视为受控的空值 */
|
|
3203
|
+
value?: string[];
|
|
3204
|
+
/** 默认选中路径(非受控) */
|
|
3205
|
+
defaultValue?: string[];
|
|
3206
|
+
/** 选中叶子或清空时回调,清空时路径为空数组 */
|
|
3207
|
+
onChange?: (value: string[], selectedOptions: CascaderOption[]) => void;
|
|
3208
|
+
/** 占位文本 */
|
|
3209
|
+
placeholder?: string;
|
|
3210
|
+
/** 是否禁用 */
|
|
3211
|
+
disabled?: boolean;
|
|
3212
|
+
/** 是否错误态 */
|
|
3213
|
+
error?: boolean;
|
|
3214
|
+
/** 是否可清空 */
|
|
3215
|
+
allowClear?: boolean;
|
|
3216
|
+
/** 尺寸,默认 "md" */
|
|
3217
|
+
size?: CascaderSize;
|
|
3218
|
+
/** 触发器中各级文本的分隔符,默认 " / " */
|
|
3219
|
+
separator?: string;
|
|
3220
|
+
/** 无数据时面板中展示的内容 */
|
|
3221
|
+
notFoundContent?: ReactNode;
|
|
3222
|
+
/** 下拉面板配置 */
|
|
3223
|
+
dropdown?: CascaderDropdownProps;
|
|
3224
|
+
/** 自定义类名 */
|
|
3225
|
+
className?: string;
|
|
3226
|
+
/** 自定义样式 */
|
|
3227
|
+
style?: CSSProperties;
|
|
3228
|
+
}
|
|
3229
|
+
|
|
3230
|
+
/**
|
|
3231
|
+
* Cascader 级联选择
|
|
3232
|
+
* 触发器与浮层外观沿用 Select,面板为逐级展开的多列菜单,只能选中叶子
|
|
3233
|
+
*/
|
|
3234
|
+
declare const Cascader: React__default.ForwardRefExoticComponent<CascaderProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
3235
|
+
|
|
3015
3236
|
/** 预览变换状态 */
|
|
3016
3237
|
type TransformType = {
|
|
3017
3238
|
x: number;
|
|
@@ -3148,15 +3369,25 @@ declare const Image: React__default.FC<ImageProps> & {
|
|
|
3148
3369
|
};
|
|
3149
3370
|
|
|
3150
3371
|
type ColorPickerSize = LgSize;
|
|
3372
|
+
/** 颜色的 RGBA 分量:r / g / b 取 0–255,a 取 0–1 */
|
|
3373
|
+
interface ColorPickerRgba {
|
|
3374
|
+
r: number;
|
|
3375
|
+
g: number;
|
|
3376
|
+
b: number;
|
|
3377
|
+
a: number;
|
|
3378
|
+
}
|
|
3151
3379
|
interface ColorPickerProps {
|
|
3152
3380
|
/** 当前颜色值(受控),支持 hex 字符串如 "#ff0000" */
|
|
3153
3381
|
value?: string;
|
|
3154
3382
|
/** 默认颜色值(非受控) */
|
|
3155
3383
|
defaultValue?: string;
|
|
3156
|
-
/**
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3384
|
+
/**
|
|
3385
|
+
* 颜色变化回调。color 为 hex 字符串(含透明度时为 8 位);
|
|
3386
|
+
* rgba 为未经 hex 量化的分量,需要输出 rgba() 等其它格式时使用
|
|
3387
|
+
*/
|
|
3388
|
+
onChange?: (color: string, rgba: ColorPickerRgba) => void;
|
|
3389
|
+
/** 拖拽结束回调,参数同 onChange */
|
|
3390
|
+
onChangeComplete?: (color: string, rgba: ColorPickerRgba) => void;
|
|
3160
3391
|
/** 输入框尺寸,默认 "md" */
|
|
3161
3392
|
size?: ColorPickerSize;
|
|
3162
3393
|
/** 是否禁用 */
|
|
@@ -3170,16 +3401,25 @@ interface ColorPickerProps {
|
|
|
3170
3401
|
/** 自定义类名 */
|
|
3171
3402
|
className?: string;
|
|
3172
3403
|
/** 自定义样式 */
|
|
3173
|
-
style?:
|
|
3404
|
+
style?: CSSProperties;
|
|
3174
3405
|
/** 弹出面板额外内容(如预设色板) */
|
|
3175
3406
|
panelExtra?: ReactNode;
|
|
3176
3407
|
/** Popover 弹出方向 */
|
|
3177
3408
|
placement?: "top" | "bottom" | "left" | "right";
|
|
3409
|
+
/**
|
|
3410
|
+
* 自定义触发器,替换默认的输入框外观。需为能接收 ref 与点击事件的单个元素;
|
|
3411
|
+
* 传入后 size / error / placeholder / className / style 不再作用于触发器
|
|
3412
|
+
*/
|
|
3413
|
+
children?: ReactElement;
|
|
3414
|
+
/** 面板内显示十六进制与透明度输入框,用于键入精确色值 */
|
|
3415
|
+
showInput?: boolean;
|
|
3416
|
+
/** 浮层挂载容器,打开面板时求值;默认挂载到 body */
|
|
3417
|
+
getPopupContainer?: () => HTMLElement;
|
|
3178
3418
|
}
|
|
3179
3419
|
|
|
3180
3420
|
/**
|
|
3181
3421
|
* ColorPicker 颜色选择器
|
|
3182
|
-
* 触发器参考 Input
|
|
3422
|
+
* 触发器参考 Input 组件外观,内容展示颜色值,右侧显示色块预览;可通过 children 替换为自定义触发器
|
|
3183
3423
|
* 面板使用 @rc-component/color-picker 提供完整的颜色选取交互
|
|
3184
3424
|
*/
|
|
3185
3425
|
declare const ColorPicker: React__default.ForwardRefExoticComponent<ColorPickerProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
@@ -3242,7 +3482,13 @@ interface DrawerProps {
|
|
|
3242
3482
|
modal?: boolean;
|
|
3243
3483
|
/** 是否显示遮罩层,默认 true */
|
|
3244
3484
|
mask?: boolean;
|
|
3245
|
-
/**
|
|
3485
|
+
/**
|
|
3486
|
+
* 关闭后是否销毁子节点,默认 true。
|
|
3487
|
+
*
|
|
3488
|
+
* false 时首次打开后子节点常驻,关闭只隐藏(display: none),重开复用原实例,
|
|
3489
|
+
* 适合承载需保留会话的 iframe;隐藏期间面板仍挂着 Radix 的 Esc 监听,
|
|
3490
|
+
* 它处于最上层时 Esc 事件会被标记 defaultPrevented
|
|
3491
|
+
*/
|
|
3246
3492
|
destroyOnHidden?: boolean;
|
|
3247
3493
|
/** 自定义 z-index */
|
|
3248
3494
|
zIndex?: number;
|
|
@@ -3952,6 +4198,8 @@ interface FileItemActions {
|
|
|
3952
4198
|
type UploadMethod = "POST" | "PUT" | "PATCH" | "post" | "put" | "patch";
|
|
3953
4199
|
/** beforeUpload 允许的返回值:false 阻止上传,File/Blob 替换待传文件 */
|
|
3954
4200
|
type BeforeUploadReturn = boolean | void | File | Blob;
|
|
4201
|
+
/** 文件列表形态:text 为文件名列表,picture-card 为图片缩略卡片 */
|
|
4202
|
+
type UploadListType = "text" | "picture-card";
|
|
3955
4203
|
interface UploadProps {
|
|
3956
4204
|
/** 接受的文件 MIME 类型,如 "image/*,.pdf" */
|
|
3957
4205
|
accept?: string;
|
|
@@ -4032,6 +4280,13 @@ interface UploadProps {
|
|
|
4032
4280
|
renderItem?: (file: UploadFile, actions: FileItemActions) => ReactNode;
|
|
4033
4281
|
/** 是否显示文件列表,默认 true */
|
|
4034
4282
|
showFileList?: boolean;
|
|
4283
|
+
/**
|
|
4284
|
+
* 文件列表形态,默认 "text"。
|
|
4285
|
+
*
|
|
4286
|
+
* "picture-card" 时文件以缩略卡片排在触发区之前(点击缩略图放大预览),
|
|
4287
|
+
* 触发区渲染为同尺寸卡片,文件数达到 `maxCount` 后隐藏;此形态下 `drag` 不生效。
|
|
4288
|
+
*/
|
|
4289
|
+
listType?: UploadListType;
|
|
4035
4290
|
/** 自定义类名 */
|
|
4036
4291
|
className?: string;
|
|
4037
4292
|
/** 自定义样式 */
|
|
@@ -4224,4 +4479,4 @@ declare const Carousel: CarouselComponent;
|
|
|
4224
4479
|
*/
|
|
4225
4480
|
declare function cn(...inputs: ClassValue[]): string;
|
|
4226
4481
|
|
|
4227
|
-
export { Alert, type AlertProps, type AlertType, AvatarWithGroup as Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbOverflow, type BreadcrumbProps, type BreadcrumbScrollOptions, type BreadcrumbSize, ButtonProps, Carousel, type CarouselApi, type CarouselDotsPlacement, CarouselItem, type CarouselItemProps, type CarouselProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, type CheckboxSize, ColorPicker, type ColorPickerProps, type ColorPickerSize, type ComponentConfig, type CoverConfig, type CustomRequestOptions, type CustomRequestReturn, DatePicker, type DatePickerProps, type DatePickerSize, type DateRange, Dialog, type DialogConfig, type DialogConfirmOptions, type DialogHostModal, type DialogHostWindow, type DialogProps, Divider, type DividerOrientation, type DividerProps, type DividerVariant, Drawer, type DrawerPlacement, type DrawerProps, Dropdown, DropdownButton, type DropdownButtonProps, DropdownCheckboxItem, type DropdownCheckboxItemProps, DropdownContent, type DropdownContentProps, type DropdownEllipsisTooltip, DropdownGroup, type DropdownGroupProps, DropdownItem, type DropdownItemData, type DropdownItemProps, DropdownLabel, type DropdownLabelData, type DropdownLabelProps, type DropdownMenuItemData, type DropdownProps, DropdownRadioGroup, type DropdownRadioGroupProps, DropdownRadioItem, type DropdownRadioItemProps, DropdownSeparator, type DropdownSeparatorData, type DropdownSeparatorProps, DropdownStatus, type DropdownStatusProps, type DropdownStatusText, type DropdownStatusType, DropdownSub, DropdownSubContent, type DropdownSubContentProps, type DropdownSubProps, DropdownSubTrigger, type DropdownSubTriggerProps, DropdownTrigger, type DropdownTriggerProps, EllipsisTooltip, type EllipsisTooltipProps, Empty, EmptyCard, type EmptyCardAlign, type EmptyCardProps, type EmptyCardSpacing, type EmptyCardStatus, type EmptyCardVariant, type EmptyIconComponent, type EmptyProps, type EmptySize, type FeedbackAttachment, type FeedbackFileWallItem, type FeedbackHistoryDetail, type FeedbackHistoryItem, type FeedbackReply, type FeedbackSimilarItem, type FeedbackStatus, type FeedbackTabKey, type FileItemActions, Flex, type FlexGapSize, type FlexOrientation, type FlexProps, Form, type FormInstance, type FormItemProps, type FormLayout, type FormProps, HostModalPage, type HostModalPageProps, type HostToastLevel, Image, type ImagePreviewGroupProps, type ImageProps, type ImgInfo, InfiniteScroll, type InfiniteScrollProps, type InfiniteScrollTarget, LgSize, LingeeProvider, type LingeeProviderProps, type LingeeSite, type Locale$1 as Locale, DEFAULT_TABS as PERSON_PICKER_DEFAULT_TABS, ENTITY_TYPE_ORDER as PERSON_PICKER_TYPE_ORDER, Pagination, type PaginationProps, type PaginationVariant, PersonPicker, PersonPickerPanel, type PersonPickerPanelProps, type PersonPickerProps, type PickerChangeInfo, type PickerEntity, type PickerEntityType, type PickerExtra, type PickerGroup, type PickerMode, type PickerOrgPathItem, type PickerPaneData, type PickerSection, type PickerSelectedCount, type PickerState, type PickerTabChangeContext, type PickerTabKey, PopoverContentProps, type PreviewGroupType, type PreviewType, Progress, type ProgressProps, type ProgressStatus, type ProgressType, RadioGroup, type RadioGroupProps, RadioItem, type RadioItemProps, type RadioSize, RangePicker, type RangePickerProps, type RangePickerSize, type RejectReason, ScrollArea, type ScrollAreaProps, ScrollBar, type ScrollBarProps, Select, type SelectDropdownProps, type SelectMode, type SelectOption, type SelectOptionGroup, type SelectProps, type SelectSize, Sidebar, SidebarAuthImage, type SidebarAuthImageProps, type SidebarCaretPlacement, type SidebarCaretTone, SidebarCollapsibleListItem, type SidebarCollapsibleListItemProps, SidebarCollapsibleNavItem, type SidebarCollapsibleNavItemChild, type SidebarCollapsibleNavItemProps, SidebarFeedbackAttachmentRow, type SidebarFeedbackAttachmentRowProps, SidebarFeedbackDetail, type SidebarFeedbackDetailProps, SidebarFeedbackField, type SidebarFeedbackFieldProps, SidebarFeedbackFileWall, type SidebarFeedbackFileWallProps, SidebarFeedbackHistoryItem, type SidebarFeedbackHistoryItemProps, SidebarFeedbackHistoryPanel, type SidebarFeedbackHistoryPanelProps, SidebarFeedbackModal, type SidebarFeedbackModalProps, SidebarFeedbackSimilarItem, type SidebarFeedbackSimilarItemProps, SidebarFeedbackSubmitPanel, type SidebarFeedbackSubmitPanelProps, SidebarFolderNode, type SidebarFolderNodeProps, SidebarFolderSection, type SidebarFolderSectionProps, type SidebarFolderStatus, type SidebarFolderStatusText, SidebarFooter, SidebarFooterBadge, type SidebarFooterBadgeProps, SidebarFooterMenuStaticRow, type SidebarFooterMenuStaticRowProps, type SidebarFooterProps, SidebarFooterUser, type SidebarFooterUserProps, SidebarGroupHeader, type SidebarGroupHeaderProps, SidebarHeader, type SidebarHeaderProps, type SidebarIndicatorType, SidebarListItem, type SidebarListItemProps, SidebarNavItem, type SidebarNavItemProps, SidebarRoot, type SidebarRootProps, SidebarStickyHeader, type SidebarStickyHeaderProps, SidebarTabBar, type SidebarTabBarProps, type SidebarTabItem, SidebarUsageBar, type SidebarUsageBarProps, SidebarUsagePanel, type SidebarUsagePanelProps, SidebarUsagePanelSection, type SidebarUsagePanelSectionProps, type SidebarUsageTone, Skeleton, type SkeletonAnimation, type SkeletonProps, type SkeletonVariant, Slider, type SliderProps, type SliderSize, Spin, type SpinProps, type SpinSize, type StepItem, type StepStatus, Steps, type StepsProps, type StepsSize, type StepsTitlePlacement, Table, type TableColumnType, type TableProps, type TableRowSelection, type TableSize, type TableSorterState, type TableStatusText, type TableStatusType, Tag, TagProps, TimePicker, type TimePickerProps, type TimePickerSize, type TimeValue, TooltipProps, type TransformAction, type TransformType, Upload, type UploadFile, type UploadFileStatus, type UploadProps, type UsePickerStateOptions, closeHostModal, cn, enUS, formatFileSize, getHostModalParams, idID, isInHostModal, msMY, notifyHostModalReady, entityKey as personPickerEntityKey, thTH, useComponentConfig, useComponentLocale, useLocale, usePickerState as usePersonPickerState, useSite, zhCN, zhTW };
|
|
4482
|
+
export { Alert, type AlertProps, type AlertType, AvatarWithGroup as Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbOverflow, type BreadcrumbProps, type BreadcrumbScrollOptions, type BreadcrumbSize, ButtonProps, Carousel, type CarouselApi, type CarouselDotsPlacement, CarouselItem, type CarouselItemProps, type CarouselProps, Cascader, type CascaderDropdownProps, type CascaderOption, type CascaderProps, type CascaderSize, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, type CheckboxSize, ColorPicker, type ColorPickerProps, type ColorPickerRgba, type ColorPickerSize, type ComponentConfig, type CoverConfig, type CustomRequestOptions, type CustomRequestReturn, DatePicker, type DatePickerProps, type DatePickerSize, type DateRange, Dialog, type DialogConfig, type DialogConfirmOptions, type DialogHostModal, type DialogHostWindow, type DialogProps, Divider, type DividerOrientation, type DividerProps, type DividerVariant, Drawer, type DrawerPlacement, type DrawerProps, Dropdown, DropdownButton, type DropdownButtonProps, DropdownCheckboxItem, type DropdownCheckboxItemProps, DropdownContent, type DropdownContentProps, type DropdownEllipsisTooltip, DropdownGroup, type DropdownGroupProps, DropdownItem, type DropdownItemData, type DropdownItemProps, DropdownLabel, type DropdownLabelData, type DropdownLabelProps, type DropdownMenuItemData, type DropdownProps, DropdownRadioGroup, type DropdownRadioGroupProps, DropdownRadioItem, type DropdownRadioItemProps, DropdownSeparator, type DropdownSeparatorData, type DropdownSeparatorProps, DropdownStatus, type DropdownStatusProps, type DropdownStatusText, type DropdownStatusType, DropdownSub, DropdownSubContent, type DropdownSubContentProps, type DropdownSubProps, DropdownSubTrigger, type DropdownSubTriggerProps, DropdownTrigger, type DropdownTriggerProps, EllipsisTooltip, type EllipsisTooltipProps, Empty, EmptyCard, type EmptyCardAlign, type EmptyCardProps, type EmptyCardSpacing, type EmptyCardStatus, type EmptyCardVariant, type EmptyIconComponent, type EmptyProps, type EmptySize, type FeedbackAttachment, type FeedbackFileWallItem, type FeedbackHistoryDetail, type FeedbackHistoryItem, type FeedbackReply, type FeedbackSimilarItem, type FeedbackStatus, type FeedbackTabKey, type FileItemActions, Flex, type FlexGapSize, type FlexOrientation, type FlexProps, Form, type FormInstance, type FormItemProps, type FormLayout, type FormProps, HostModalPage, type HostModalPageProps, type HostToastLevel, Image, type ImagePreviewGroupProps, type ImageProps, type ImgInfo, InfiniteScroll, type InfiniteScrollProps, type InfiniteScrollTarget, LgSize, LingeeProvider, type LingeeProviderProps, type LingeeSite, type Locale$1 as Locale, DEFAULT_TABS as PERSON_PICKER_DEFAULT_TABS, ENTITY_TYPE_ORDER as PERSON_PICKER_TYPE_ORDER, Pagination, type PaginationProps, type PaginationVariant, PersonPicker, PersonPickerPanel, type PersonPickerPanelProps, type PersonPickerProps, type PickerChangeInfo, type PickerEntity, type PickerEntityType, type PickerExtra, type PickerGroup, type PickerMode, type PickerOrgPathItem, type PickerPaneData, type PickerSection, type PickerSelectedCount, type PickerState, type PickerTabChangeContext, type PickerTabKey, PopoverContentProps, type PreviewGroupType, type PreviewType, Progress, type ProgressProps, type ProgressStatus, type ProgressType, RadioGroup, type RadioGroupProps, RadioItem, type RadioItemProps, type RadioSize, RangePicker, type RangePickerProps, type RangePickerSize, type RejectReason, ScrollArea, type ScrollAreaProps, ScrollBar, type ScrollBarProps, Select, type SelectDropdownProps, type SelectMode, type SelectOption, type SelectOptionGroup, type SelectProps, type SelectSize, Sidebar, SidebarAuthImage, type SidebarAuthImageProps, type SidebarCaretPlacement, type SidebarCaretTone, SidebarCollapsibleListItem, type SidebarCollapsibleListItemProps, SidebarCollapsibleNavItem, type SidebarCollapsibleNavItemChild, type SidebarCollapsibleNavItemProps, SidebarFeedbackAttachmentRow, type SidebarFeedbackAttachmentRowProps, SidebarFeedbackDetail, type SidebarFeedbackDetailProps, SidebarFeedbackField, type SidebarFeedbackFieldProps, SidebarFeedbackFileWall, type SidebarFeedbackFileWallProps, SidebarFeedbackHistoryItem, type SidebarFeedbackHistoryItemProps, SidebarFeedbackHistoryPanel, type SidebarFeedbackHistoryPanelProps, SidebarFeedbackModal, type SidebarFeedbackModalProps, SidebarFeedbackSimilarItem, type SidebarFeedbackSimilarItemProps, SidebarFeedbackSubmitPanel, type SidebarFeedbackSubmitPanelProps, SidebarFolderNode, type SidebarFolderNodeProps, SidebarFolderSection, type SidebarFolderSectionProps, type SidebarFolderStatus, type SidebarFolderStatusText, SidebarFooter, SidebarFooterBadge, type SidebarFooterBadgeProps, SidebarFooterMenuStaticRow, type SidebarFooterMenuStaticRowProps, type SidebarFooterProps, SidebarFooterUser, type SidebarFooterUserProps, SidebarGroupHeader, type SidebarGroupHeaderProps, SidebarHeader, type SidebarHeaderProps, type SidebarIndicatorType, SidebarListItem, type SidebarListItemProps, SidebarNavItem, type SidebarNavItemProps, SidebarRoot, type SidebarRootProps, SidebarStickyHeader, type SidebarStickyHeaderProps, SidebarTabBar, type SidebarTabBarProps, type SidebarTabItem, SidebarUsageBar, type SidebarUsageBarProps, SidebarUsagePanel, type SidebarUsagePanelProps, SidebarUsagePanelSection, type SidebarUsagePanelSectionProps, type SidebarUsageTone, Skeleton, type SkeletonAnimation, type SkeletonProps, type SkeletonVariant, Slider, type SliderProps, type SliderSize, Spin, type SpinProps, type SpinSize, type StepItem, type StepStatus, Steps, type StepsProps, type StepsSize, type StepsTitlePlacement, Table, type TableColumnType, type TableComponents, type TableProps, type TableRowSelection, type TableSize, type TableSorterState, type TableStatusText, type TableStatusType, Tag, TagProps, TimePicker, type TimePickerProps, type TimePickerSize, type TimeValue, Timeline, TimelineCard, type TimelineCardProps, type TimelineCardStatus, type TimelineItem, type TimelineProps, type TimelineStatus, TooltipProps, type TransformAction, type TransformType, TreeSelect, type TreeSelectDropdownProps, type TreeSelectNode, type TreeSelectProps, type TreeSelectSize, Upload, type UploadFile, type UploadFileStatus, type UploadListType, type UploadProps, type UsePickerStateOptions, closeHostModal, cn, enUS, formatFileSize, getHostModalParams, idID, isInHostModal, msMY, notifyHostModalReady, entityKey as personPickerEntityKey, thTH, useComponentConfig, useComponentLocale, useLocale, usePickerState as usePersonPickerState, useSite, zhCN, zhTW };
|