Browse Source

[Improvement][UI] Description input box can not input blank (#14396)

3.2.1-prepare
Aaron Wang 1 year ago committed by GitHub
parent
commit
8a2c05f1ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      dolphinscheduler-ui/src/views/datasource/list/detail.tsx
  2. 1
      dolphinscheduler-ui/src/views/projects/list/components/project-modal.tsx
  3. 2
      dolphinscheduler-ui/src/views/resource/udf/function/components/function-modal.tsx
  4. 1
      dolphinscheduler-ui/src/views/security/alarm-group-manage/components/alarm-group-modal.tsx
  5. 1
      dolphinscheduler-ui/src/views/security/cluster-manage/components/cluster-modal.tsx
  6. 1
      dolphinscheduler-ui/src/views/security/environment-manage/components/environment-modal.tsx
  7. 1
      dolphinscheduler-ui/src/views/security/tenant-manage/components/tenant-modal.tsx

1
dolphinscheduler-ui/src/views/datasource/list/detail.tsx

@ -230,7 +230,6 @@ const DetailModal = defineComponent({
</NFormItem> </NFormItem>
<NFormItem label={t('datasource.description')} path='note'> <NFormItem label={t('datasource.description')} path='note'>
<NInput <NInput
allowInput={this.trim}
class='input-data-source-description' class='input-data-source-description'
v-model={[detailForm.note, 'value']} v-model={[detailForm.note, 'value']}
type='textarea' type='textarea'

1
dolphinscheduler-ui/src/views/projects/list/components/project-modal.tsx

@ -137,7 +137,6 @@ const ProjectModal = defineComponent({
path='description' path='description'
> >
<NInput <NInput
allowInput={this.trim}
v-model={[this.model.description, 'value']} v-model={[this.model.description, 'value']}
type='textarea' type='textarea'
placeholder={t('project.list.description_tips')} placeholder={t('project.list.description_tips')}

2
dolphinscheduler-ui/src/views/resource/udf/function/components/function-modal.tsx

@ -252,7 +252,6 @@ export default defineComponent({
style={{ marginBottom: '5px' }} style={{ marginBottom: '5px' }}
> >
<NInput <NInput
allowInput={this.trim}
type='textarea' type='textarea'
v-model={[this.uploadForm.description, 'value']} v-model={[this.uploadForm.description, 'value']}
placeholder={t('resource.function.enter_description_tips')} placeholder={t('resource.function.enter_description_tips')}
@ -272,7 +271,6 @@ export default defineComponent({
path='description' path='description'
> >
<NInput <NInput
allowInput={this.trim}
type='textarea' type='textarea'
v-model={[this.functionForm.description, 'value']} v-model={[this.functionForm.description, 'value']}
placeholder={t('resource.function.enter_instructions_tips')} placeholder={t('resource.function.enter_instructions_tips')}

1
dolphinscheduler-ui/src/views/security/alarm-group-manage/components/alarm-group-modal.tsx

@ -157,7 +157,6 @@ const AlarmGroupModal = defineComponent({
path='description' path='description'
> >
<NInput <NInput
allowInput={this.trim}
type='textarea' type='textarea'
placeholder={t( placeholder={t(
'security.alarm_group.alarm_group_description_tips' 'security.alarm_group.alarm_group_description_tips'

1
dolphinscheduler-ui/src/views/security/cluster-manage/components/cluster-modal.tsx

@ -185,7 +185,6 @@ const ClusterModal = defineComponent({
path='description' path='description'
> >
<NInput <NInput
allowInput={this.trim}
class='input-cluster-desc' class='input-cluster-desc'
placeholder={t('security.cluster.cluster_description_tips')} placeholder={t('security.cluster.cluster_description_tips')}
v-model={[this.model.description, 'value']} v-model={[this.model.description, 'value']}

1
dolphinscheduler-ui/src/views/security/environment-manage/components/environment-modal.tsx

@ -172,7 +172,6 @@ const EnvironmentModal = defineComponent({
path='description' path='description'
> >
<NInput <NInput
allowInput={this.trim}
class='input-environment-desc' class='input-environment-desc'
placeholder={t( placeholder={t(
'security.environment.environment_description_tips' 'security.environment.environment_description_tips'

1
dolphinscheduler-ui/src/views/security/tenant-manage/components/tenant-modal.tsx

@ -152,7 +152,6 @@ const TenantModal = defineComponent({
path='description' path='description'
> >
<NInput <NInput
allowInput={this.trim}
class='input-description' class='input-description'
placeholder={t('security.tenant.description_tips')} placeholder={t('security.tenant.description_tips')}
v-model={[this.model.description, 'value']} v-model={[this.model.description, 'value']}

Loading…
Cancel
Save