<template>
  <el-drawer
    :title="params.title"
    :visible.sync="params.visible"
    :custom-class="params.class"
    :size="params.width"
    :direction="params.direction"
  >
    <slot />
  </el-drawer>
</template>

<script>
export default {
  name: 'Drawer',
  props: {
    params: {
      type: Object,
      default: () => {}
    }
  }
}
</script>

<style scoped>
</style>
