Commit d325344d49dd7ce4ad48c80545ced1a4f2d4895a

Authored by ww
1 parent 4af920f0

fix: save a null object if description is null && adjust textArea component size

... ... @@ -247,7 +247,7 @@
247 247 getSonFormValue.value,
248 248 getNameObj,
249 249 id,
250   - additionalInfoV
  250 + additionalInfoV.additionalInfo.description ? additionalInfoV : {}
251 251 );
252 252 if (!unref(isUpdate)) {
253 253 delete allPostForm.id;
... ...
... ... @@ -219,14 +219,14 @@ export const modeKafkaForm: FormSchema[] = [
219 219 return !!values.addMetadataKeyValuesAsKafkaHeaders;
220 220 },
221 221 },
222   -
223 222 {
224 223 field: 'description',
225 224 label: '说明',
226   - colProps: { span: 12 },
  225 + colProps: { span: 24 },
227 226 component: 'InputTextArea',
228 227 componentProps: {
229 228 maxLength: 255,
  229 + rows: 4,
230 230 placeholder: '请输入说明',
231 231 },
232 232 },
... ... @@ -440,10 +440,11 @@ export const modeMqttForm: FormSchema[] = [
440 440 {
441 441 field: 'description',
442 442 label: '说明',
443   - colProps: { span: 12 },
  443 + colProps: { span: 24 },
444 444 component: 'InputTextArea',
445 445 componentProps: {
446 446 maxLength: 255,
  447 + rows: 4,
447 448 placeholder: '请输入说明',
448 449 },
449 450 },
... ... @@ -610,10 +611,11 @@ export const modeRabbitMqForm: FormSchema[] = [
610 611 {
611 612 field: 'description',
612 613 label: '说明',
613   - colProps: { span: 12 },
  614 + colProps: { span: 24 },
614 615 component: 'InputTextArea',
615 616 componentProps: {
616 617 maxLength: 255,
  618 + rows: 4,
617 619 placeholder: '请输入说明',
618 620 },
619 621 },
... ... @@ -957,10 +959,11 @@ export const modeApiForm: FormSchema[] = [
957 959 {
958 960 field: 'description',
959 961 label: '说明',
960   - colProps: { span: 12 },
  962 + colProps: { span: 24 },
961 963 component: 'InputTextArea',
962 964 componentProps: {
963 965 maxLength: 255,
  966 + rows: 4,
964 967 placeholder: '请输入说明',
965 968 },
966 969 },
... ...