<template>
  <el-button
    v-bind="$attrs.props"
    class="btn"
    @click="handleClick"
  >
    {{ $attrs.name }}
  </el-button>
</template>

<script>
import { common } from '../../mixins/common'

export default {
  name: 'ImButton',
  mixins: [common],
  methods: {
    handleClick(){
      this.form.newValue = Math.random()
    }
  }
}
</script>

<style scoped>
.btn{
  width: auto !important;
}
</style>
