diff --git a/src/components/AutoDataTable/index.vue b/src/components/AutoDataTable/index.vue index 23580d8bc..ac24b2ce6 100644 --- a/src/components/AutoDataTable/index.vue +++ b/src/components/AutoDataTable/index.vue @@ -235,10 +235,11 @@ export default { setDefaultFormatterIfNeed(col) { if (!col.formatter) { col.formatter = (row, column, cellValue) => { - const value = cellValue || '-' + let value = cellValue let padding = '0' - if (value === '-') { + if (!value && value !== 0) { padding = '6px' + value = '-' } return {value} } diff --git a/src/views/assets/Domain/DomainList.vue b/src/views/assets/Domain/DomainList.vue index 1371401b3..29d45d1d2 100644 --- a/src/views/assets/Domain/DomainList.vue +++ b/src/views/assets/Domain/DomainList.vue @@ -1,5 +1,5 @@