const CmsModalMix = {
  props: {
    value: { // modal默认是否显示
      type: Boolean,
      default: () => {
        return false
      }
    },
    showFooter: { // modal默认是否显示
      type: Boolean,
      default: () => {
        return true
      }
    },
    modalTitle: { // modal 标题
      type: String,
      default: () => {
        return ''
      }
    },
    modalWidth: { // modal 宽度
      type: [ String, Number ],
      default: () => {
        return '50%'
      }
    },
    modalHeight: { // modal 高度
      type: [ String, Number ],
      default: '50%'
    },
    modalCallback: {
      type: Function,
      required: false,
      default: () => {
        return undefined
      }
    }
  },
  methods: {
    onOk() {
      console.log('确认按钮点击了')
      this.$emit('confirm', false)
    },
  }
}

export { CmsModalMix }
