Skip to content

Commit

Permalink
fix: value is 0 display 0 not defaultValue
Browse files Browse the repository at this point in the history
  • Loading branch information
helloqian12138 committed May 23, 2024
1 parent c278aee commit 5d6dd81
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ export default class DTCText<RecordType extends DripTableRecordTypeBase> extends
console.warn('[DripTable] schema.columns[].options.dataProcess is deprecated, use schema.columns[].dataTranslation instead.');
return `${prefix ?? ''}${translate(schema.options.i18n, dataProcessIndex(record, dataIndex, defaultValue, options.dataProcess)) ?? ''}${suffix ?? ''}`.split('\n');
}
return `${prefix ?? ''}${translate(schema.options.i18n, `${value || defaultValue}`)}${suffix ?? ''}`.split('\n');
return `${prefix ?? ''}${translate(schema.options.i18n, `${value === '' || value === null || value === void 0 ? defaultValue : value}`)}${suffix ?? ''}`.split('\n');
}
if (mode === 'multiple') {
if (options.dataProcess) {
Expand Down

0 comments on commit 5d6dd81

Please sign in to comment.