<template>
  <div class='bk-icon' @click="callback ? callback(name, url) : ()=> {}">
    <img v-if='!url' :src="'/static/images/' + name + '.svg'">
    <img v-if='url' :src="url">
  </div>
</template>
<script>

/** 列表组件
 *
 *
*/
export default {
  props: {
    name: ['String'],
    url: ['String'],
    callback: ['Function']
  },
  mounted () {
  },
  methods: {}
}
</script>

<style scoped>
.bk-icon {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  height: 100%;
  width: 100%;
}
.bk-icon img {
  height: 100%;
  width: 100%;
}
</style>

