ButtonModule.vue 934 Bytes
<template>
  <div class="button-module">
    <button @click="handleClick" type="primary">查看详情</button>
  </div>
</template>

<script>
import { method } from 'lodash'

export default {
  name: 'ButtonModule',
  props: {
    mediaType: {
      type: String,
      default: 'image'
    },
    src: {
      type: String,
      default: ''
    },
    alt: {
      type: String,
      default: ''
    },
    controls: {
      type: Boolean,
      default: false
    },
    autoplay: {
      type: Boolean,
      default: false
    },
    loop: {
      type: Boolean,
      default: false
    },
    muted: {
      type: Boolean,
      default: true
    }
  },
  data() {
    return {
      localUrl: this.src
    }
  },
  methods: {
    handleClick() {
      this.$emit('jump', 'EvaluationFormDetails')
    }
  }
}
</script>

<style scoped lang="scss">
.button-module {
  button {
    width: 120px;
    height: 30px;
  }
}
</style>