<template>
  <zy-dialog :show="show" :title="title" :width="width" :items="items" :form-loading="loading"
             :label-width="labelWidth" :cols="cols" @close="close" @submit="submit"></zy-dialog>
</template>
<script>

  export default {
    name: '',
    components: {},
    props: [],
    data() {
      return {
        show: false,
        title: '新增',
        width: '600px',
        loading: false,
        items: [],
        labelWidth: '100px',
        cols: 1,
        injectData: {}
      }
    },
    created() {
    },
    provide() {
      return this.injectData
    },
    mounted() {
    },
    watch: {},
    computed: {},
    methods: {
      close() {
        this.show = false;
      },
      submit(jsonData) {
        this.callback(jsonData, this.close);
      }
    },
  }
</script>
<style scoped lang="scss">

</style>
