Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/_common
Submodule _common updated 64 files
+2 −1 docs/plugins/changelog-to-json/libs.ts
+1 −1 docs/plugins/changelog-to-json/types.ts
+19 −0 docs/web/api/attachments.md
+0 −12 docs/web/api/chat-action.md
+12 −0 docs/web/api/chat-actionbar.md
+0 −63 docs/web/api/chat-ai.md
+1 −1 docs/web/api/chat-content.md
+1 −1 docs/web/api/chat-input.md
+1 −1 docs/web/api/chat-item.md
+45 −0 docs/web/api/chat-list.md
+1 −1 docs/web/api/chat-loading.md
+33 −0 docs/web/api/chat-markdown.md
+33 −0 docs/web/api/chat-message.md
+1 −1 docs/web/api/chat-reasoning.md
+16 −4 docs/web/api/chat-sender.md
+22 −0 docs/web/api/chat-thinking.md
+0 −37 docs/web/api/chat.md
+31 −0 docs/web/api/chatbot.md
+13 −10 js/components.ts
+52 −5 js/date-picker/format.ts
+1 −0 js/global-config/locale/ar_KW.ts
+2 −0 js/global-config/locale/en_US.ts
+2 −0 js/global-config/locale/it_IT.ts
+2 −0 js/global-config/locale/ja_JP.ts
+3 −1 js/global-config/locale/ko_KR.ts
+2 −0 js/global-config/locale/ru_RU.ts
+2 −0 js/global-config/locale/zh_CN.ts
+1 −0 js/global-config/locale/zh_TW.ts
+1 −0 js/tree-v1/tree-node-model.ts
+5 −2 js/upload/main.ts
+2 −0 js/upload/types.ts
+8 −1 js/upload/xhr.ts
+31 −0 style/mobile/_variables.less
+2 −1 style/mobile/components/action-sheet/_index.less
+1 −1 style/mobile/components/back-top/_var.less
+1 −0 style/mobile/components/calendar/_index.less
+5 −12 style/mobile/components/cascader/_var.less
+3 −3 style/mobile/components/dialog/_index.less
+2 −0 style/mobile/components/dialog/_var.less
+2 −2 style/mobile/components/divider/_index.less
+1 −0 style/mobile/components/divider/_var.less
+1 −0 style/mobile/components/drawer/_index.less
+4 −0 style/mobile/components/dropdown-menu/_index.less
+10 −6 style/mobile/components/grid-item/_index.less
+14 −38 style/mobile/components/grid-item/_var.less
+6 −2 style/mobile/components/input/_index.less
+2 −0 style/mobile/components/input/_var.less
+1 −1 style/mobile/components/loading/_index.less
+1 −1 style/mobile/components/navbar/_index.less
+1 −1 style/mobile/components/picker/_index.less
+2 −0 style/mobile/components/picker/_var.less
+12 −0 style/mobile/components/popover/_mixin.less
+1 −0 style/mobile/components/popover/_var.less
+13 −3 style/mobile/components/slider/_index.less
+5 −3 style/mobile/components/slider/_var.less
+12 −12 style/mobile/components/swiper-nav/_index.less
+3 −1 style/mobile/components/swiper-nav/_var.less
+1 −0 style/mobile/components/tree-select/_index.less
+4 −4 style/mobile/components/tree-select/_var.less
+5 −0 style/mobile/theme/_components.less
+44 −0 style/mobile/theme/_font.less
+127 −48 style/web/components/chat/_index.less
+1 −1 style/web/components/chat/_var.less
+2 −2 style/web/components/descriptions/_index.less
2 changes: 2 additions & 0 deletions src/upload/hooks/useUpload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export type ValidateParams = Parameters<TdUploadProps['onValidate']>[0];
export default function useUpload(props: TdUploadProps) {
const {
allowUploadDuplicateFile,
capture,
action,
disabled,
autoUpload,
Expand Down Expand Up @@ -175,6 +176,7 @@ export default function useUpload(props: TdUploadProps) {
uploadValue,
files: [...files],
allowUploadDuplicateFile,
capture,
max,
sizeLimit,
autoUpload,
Expand Down
2 changes: 1 addition & 1 deletion src/upload/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export interface TdUploadProps<T extends UploadFile = UploadFile> {
*/
addContent?: TNode;
/**
* 是否允许重复上传相同文件名的文件
* 是否允许重复上传相同文件名的文件。在 `capture = ''` + 拍照上传场景中,`allowUploadDuplicateFile` 应取 `true`,避免拍照上传的文件被同名文件校验过滤
* @default false
*/
allowUploadDuplicateFile?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion src/upload/upload.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ accept | String | - | 接受上传的文件类型,[查看 W3C示例](https://w
action | String | - | 上传接口。设接口响应数据为字段 `response`,那么 `response.error` 存在时会判断此次上传失败,并显示错误文本信息;`response.url` 会作为文件上传成功后的地址,并使用该地址显示图片或文件 | N
addBtn | Boolean | true | `0.20.2`。添加按钮 | N
addContent | TNode | - | 添加按钮内容。值为空,使用默认图标渲染;值为 slot 则表示使用插槽渲染;其他值无效。TS 类型:`string \| TNode`。[通用类型定义](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N
allowUploadDuplicateFile | Boolean | false | 是否允许重复上传相同文件名的文件 | N
allowUploadDuplicateFile | Boolean | false | 是否允许重复上传相同文件名的文件。在 `capture = ''` + 拍照上传场景中,`allowUploadDuplicateFile` 应取 `true`,避免拍照上传的文件被同名文件校验过滤 | N
autoUpload | Boolean | true | 是否在选择文件后自动发起请求上传文件 | N
beforeUpload | Function | - | 如果是自动上传模式 `autoUpload=true`,表示单个文件上传之前的钩子函数,若函数返回值为 `false` 则表示不上传当前文件。<br/>如果是非自动上传模式 `autoUpload=false`,函数返回值为 `false` 时表示从上传文件中剔除当前文件。TS 类型:`(file: UploadFile) => boolean \| Promise<boolean>` | N
capture | String | - | 图片选取模式,可选值为 camera (直接调起摄像头) | N
Expand Down
Loading