Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(designable-antd): expose upload component's textContent property in setting form #1818

Merged
merged 1 commit into from
Jul 16, 2021
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
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