Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitedbd09d

Browse files
committed
#1720 add drag area hint
1 parent85e9cf5 commitedbd09d

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

‎client/packages/lowcoder/src/comps/comps/fileComp/draggerUpload.tsx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ interface DraggerUploadProps {
113113
maxFiles:number;
114114
uploadType:"single"|"multiple"|"directory";
115115
text:string;
116+
dragHintText?:string;
116117
dispatch:(action:CompAction)=>void;
117118
autoHeight:boolean;
118119
tabIndex?:number;
@@ -237,7 +238,7 @@ export const DraggerUpload = (props: DraggerUploadProps) => {
237238
{props.text||trans("file.dragAreaText")}
238239
</p>
239240
<pclassName="ant-upload-hint">
240-
{trans("file.dragAreaHint")}
241+
{props.dragHintText}
241242
</p>
242243
</StyledDragger>
243244
</DraggerShell>

‎client/packages/lowcoder/src/comps/comps/fileComp/fileComp.tsx‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,7 @@ const Upload = (
449449
props:RecordConstructorToView<typeofcommonChildren>&{
450450
uploadType:"single"|"multiple"|"directory";
451451
text:string;
452+
dragHintText?:string;
452453
dispatch:(action:CompAction)=>void;
453454
forceCapture:boolean;
454455
tabIndex?:number;
@@ -628,6 +629,7 @@ const UploadModeOptions = [
628629

629630
constchildrenMap={
630631
text:withDefault(StringControl,trans("file.upload")),
632+
dragHintText:withDefault(StringControl,trans("file.dragAreaHint")),
631633
uploadType:dropdownControl(UploadTypeOptions,"single"),
632634
uploadMode:dropdownControl(UploadModeOptions,"button"),
633635
autoHeight:withDefault(AutoHeightControl,"fixed"),
@@ -656,6 +658,10 @@ let FileTmpComp = new UICompBuilder(childrenMap, (props, dispatch) => {
656658
label:trans("file.uploadMode"),
657659
radioButton:true,
658660
})}
661+
{children.uploadMode.getView()==="dragArea"&&
662+
children.dragHintText.propertyView({
663+
label:trans("file.dragHintText"),
664+
})}
659665
{children.uploadType.propertyView({label:trans("file.uploadType")})}
660666
{children.uploadMode.getView()==="dragArea"&&children.autoHeight.getPropertyView()}
661667
</Section>

‎client/packages/lowcoder/src/i18n/locales/en.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1930,6 +1930,7 @@ export const en = {
19301930
"uploadMode":"Upload Mode",
19311931
"dragAreaText":"Click or drag file to this area to upload",
19321932
"dragAreaHint":"Support for a single or bulk upload. Strictly prohibited from uploading company data or other band files.",
1933+
"dragHintText":"Hint Text",
19331934
},
19341935
"date":{
19351936
"format":"Format",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp