/**version-1.0*/
let tmixins = {};
tmixins = {
  props: ['visiable', 'formData'],
  data() {
    return {
      scopeData: {},
      showDialog:true
    };
  },
  created() {
    this.scopeData = Object.assign({}, this.formData);
  },
  methods: {
    dialogClose(event) {
      this.$emit('update:formData', this.scopeData);
      this.$emit('update:visiable', false);
    },
    dialogPrimary() {
      this.scopeData = this.formData;
      this.$emit('confirm', this.scopeData);
      this.$emit('update:visiable', false);
    },
    clear() {
      this.scopeData = {};
      this.$emit('update:formData', {});
      this.$emit('clear');
    }
  }
};
export const mixins = tmixins
