Tencent / Tencent/tdesign

[Upload] 自定义上传图片的文案

Open
#591 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
Vue
Stars
4.1k
Forks
342
Avg merge
9h 57m
Merged PRs (30d)
12

Description

这个功能解决了什么问题

上传组件 upload 中 如果设置 theme="image" 属性时 如果我想用这个样式上传视频时,组件里的‘点击上传图片’无法自定义

你建议的方案是什么

这个组件中的 文案 可以通过 placeholder 属性自定义

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the upload component and inspect how theme="image" displays its current text and how the placeholder property is handled. The work is done when the image-theme upload text can be customized for another use, such as video uploads, without changing the component's existing default wording.

Written by the indexing model from the issue text.

Assessment

Domain
frontend
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.