|
|
@ -175,10 +175,7 @@ export default defineComponent({ |
|
|
|
const Com = componentMap['Divider'] as ReturnType<typeof defineComponent> |
|
|
|
let labelName = item?.label || '' |
|
|
|
if(item?.label){ |
|
|
|
labelName = t(`ts.${item?.label}`) |
|
|
|
if(labelName === 'ts.' + item?.label){ |
|
|
|
labelName = item?.label |
|
|
|
} |
|
|
|
labelName = t(`ts.${item?.label}`).replace('ts.','') |
|
|
|
} |
|
|
|
return isDivider ? ( |
|
|
|
<Com {...{ contentPosition: 'left', ...item.componentProps }}>{labelName}</Com> |
|
|
@ -227,18 +224,12 @@ export default defineComponent({ |
|
|
|
if (item?.labelMessage) { |
|
|
|
let labelName = item.label || '' |
|
|
|
if(item.label){ |
|
|
|
labelName = t(`ts.${item.label}`) |
|
|
|
if(labelName === 'ts.' + item.label){ |
|
|
|
labelName = item.label |
|
|
|
} |
|
|
|
labelName = t(`ts.${item.label}`).replace('ts.','') |
|
|
|
} |
|
|
|
|
|
|
|
let labelMessage = item.labelMessage || '' |
|
|
|
if(item.labelMessage){ |
|
|
|
labelMessage = t(`ts.${item.labelMessage}`) |
|
|
|
if(labelMessage === 'ts.' + item.labelMessage){ |
|
|
|
labelMessage = item.labelMessage |
|
|
|
} |
|
|
|
labelMessage = t(`ts.${item.labelMessage}`).replace('ts.','') |
|
|
|
} |
|
|
|
formItemSlots.label = () => { |
|
|
|
return ( |
|
|
@ -367,10 +358,7 @@ export default defineComponent({ |
|
|
|
} |
|
|
|
let labelName = item.label || '' |
|
|
|
if(item.label){ |
|
|
|
labelName = t(`ts.${item.label}`) |
|
|
|
if(labelName === 'ts.' + item.label){ |
|
|
|
labelName = item.label |
|
|
|
} |
|
|
|
labelName = t(`ts.${item.label}`).replace('ts.','') |
|
|
|
} |
|
|
|
return ( |
|
|
|
<ElFormItem {...(item.formItemProps || {})} prop={item.field} label={labelName}> |
|
|
|