chenlei há 6 meses atrás
pai
commit
542a7564d2
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      pc/wcarrier/comp/invoice.vue

+ 2 - 1
pc/wcarrier/comp/invoice.vue

@@ -82,7 +82,8 @@ export default {
       return this.$props.readOnly || !this.isEdit
     },
     emptyArgs() {
-      return { open: this.isReadOnly, text: '[ 暂无内容 ]' }
+      // el-form :disabled 变化后,之前的变化会保留,导致空内容请不掉,所以添加此参数
+      return { open: !this.$props.disabled && this.isReadOnly, text: '[ 暂无内容 ]' }
     }
   },
   watch: {