confirm-popover.vue 698 Bytes
Newer Older
wangcong committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
<template>
  <el-popover
    trigger="manual"
    :value="value"
    ref="popover"
  >
    <div
      style="display: flex; align-items: center; justify-content: center; margin: 4px 4px 12px 4px;"
    ><Icon style="color: #FF9D00;" type="ios-help-circle" /><span>确定要删除本条意见吗?</span></div>
    <div style="text-align: right; margin: 0">
      <Button size="small" type="text" @click="$emit('cancle')">取消</Button>
      <Button type="primary" size="small" @click="$emit('confirm')">确定</Button>
    </div>
    <template slot="reference"><slot></slot></template>
    
  </el-popover>
</template>

<script>
export default {
  props: ['value'],
}
</script>

<style>

</style>