Skip to content

Commit

Permalink
refactor(designable-ant): expose upload component's textContent prope…
Browse files Browse the repository at this point in the history
…rty in setting form (#1818)
  • Loading branch information
nekic authored Jul 16, 2021
1 parent b421ae6 commit 1534444
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions designable/antd/src/locales/en-US.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ const UploadLocale = {
withCredentials: 'withCredentials',
maxCount: 'Max Count',
method: 'Method',
textContent: 'Text Content',
}

const FormGridLocale = {
Expand Down
1 change: 1 addition & 0 deletions designable/antd/src/locales/zh-CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ const UploadLocale = {
withCredentials: '携带Cookie',
maxCount: '最大数量',
method: '方法',
textContent: '文案',
}

const FormGridLocale = {
Expand Down
5 changes: 5 additions & 0 deletions designable/antd/src/schemas/Upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ export const Upload: ISchema & { Dragger?: ISchema } = {
'x-decorator': 'FormItem',
'x-component': 'Switch',
},
textContent: {
type: 'string',
'x-decorator': 'FormItem',
'x-component': 'Input',
},
},
}

Expand Down

0 comments on commit 1534444

Please sign in to comment.