<template>
  <div class="full-screen-btn-con">
    <Tooltip content="清理本地缓存" placement="bottom">
      <Icon @click.native="handleChange" type="ios-trash-outline" :size="23"></Icon>
    </Tooltip>
  </div>
</template>

<script>
import { localClear } from '@/libs/util'
export default {
  name: 'Clear',
  computed: {
    showFullScreenBtn () {
      return window.navigator.userAgent.indexOf('MSIE') < 0
    }
  },
  props: {
    value: {
      type: Boolean,
      default: false
    }
  },
  methods: {
    handleChange () {
      localClear()
      this.$Message.success('本地缓存清理成功，请刷新页面')
      console.log('执行清理本地缓存')
    }
  },
  mounted () {
  }
}
</script>

<style lang="less">
.full-screen-btn-con .ivu-tooltip-rel{
  height: 64px;
  line-height: 56px;
  i{
    cursor: pointer;
  }
}
</style>
