xyc
2024-10-22 e4246536ec8218b0444667cbe457c0d3d6e67bd9
web/packages/components/zt-dialog/src/zt-dialog.vue
@@ -82,10 +82,13 @@
    computed: {
      _title() {
        if (this.title) {
          console.log(this.title,'this.title')
          return this.title
        } else if (!this.editAble) {
        } else if (this.isView) {
          console.log(this.editAble,'this.editAble')
          return this.$t('view')
        } else if (this.$parent.dataForm !== undefined) {
          console.log(this.$parent.dataForm,'this.$parent.dataForm')
          return !this.$parent.dataForm.id ? this.$t('add') : this.$t('update')
        }
      }