Skip to content

Commit c4e70be

Browse files
fix: Fix translation issues and multi-line input form issues
1 parent ab434b0 commit c4e70be

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

ui/src/components/dynamics-form/constructor/items/TextareaInputConstructor.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
:minlength="formValue.minlength"
7979
:placeholder="$t('dynamicsForm.default.placeholder')"
8080
show-word-limit
81-
:autosize="{ minRows: 3, maxRows: 3 }"
81+
:rows="3"
8282
type="textarea"
8383
/>
8484
</el-form-item>
@@ -113,7 +113,7 @@ const getData = () => {
113113
maxlength: formValue.value.maxlength,
114114
minlength: formValue.value.minlength,
115115
'show-word-limit': true,
116-
autosize: { minRows: 3, maxRows: 3 },
116+
rows: 3,
117117
},
118118
default_value: formValue.value.default_value,
119119
show_default_value: formValue.value.show_default_value,

ui/src/locales/lang/zh-Hant/dynamics-form.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default {
1111
RadioCard: '選項卡',
1212
RadioRow: '單行選項卡',
1313
UploadInput: '文件上傳',
14-
TextareaInput: '多行文字方塊',
14+
TextareaInput: '多行文字框',
1515
MultiRow: '單行多選卡',
1616
},
1717
default: {

ui/src/views/application-overview/component/APIKeyDialog.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ async function changeState(row: any) {
122122
is_active: !row.is_active,
123123
}
124124
const str = obj.is_active
125-
? t('views.applicationOverview.appInfo.APIKeyDialog.enabledSuccess')
126-
: t('views.applicationOverview.appInfo.APIKeyDialog.disabledSuccess')
125+
? t('common.status.enabled')
126+
: t('common.status.disabled')
127127
await loadSharedApi({ type: 'applicationKey', systemType: apiType.value })
128128
.putAPIKey(id as string, row.id, obj, loading)
129129
.then(() => {

0 commit comments

Comments
 (0)