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/components/AutoDataZTree/index.vue b/src/components/AutoDataZTree/index.vue index cbe8c672b..7fb5ccd4b 100644 --- a/src/components/AutoDataZTree/index.vue +++ b/src/components/AutoDataZTree/index.vue @@ -169,7 +169,9 @@ export default { treeNode.meta.data = res this.zTree.updateNode(treeNode) this.$message.success(this.$tc('common.updateSuccessMsg')) - }).finally(() => { this.refreshTree() }) + }).finally(() => { + this.refreshTree() + }) }, onBodyMouseDown: function(event) { const rMenuID = this.$refs.dataztree.$refs.ztree.iRMenuID @@ -305,11 +307,13 @@ export default { text-decoration: none; background-color: #f5f5f5; } - .rmenu:hover{ + + .rmenu:hover { background-color: #f5f7fa; } .data-z-tree >>> .fa { width: 10px; + margin-right: 3px; } diff --git a/src/components/DataZTree/components/ZTree/index.vue b/src/components/DataZTree/components/ZTree/index.vue index 7e7886cbc..d261d2438 100644 --- a/src/components/DataZTree/components/ZTree/index.vue +++ b/src/components/DataZTree/components/ZTree/index.vue @@ -19,9 +19,9 @@ @@ -29,10 +29,10 @@ -