<template>
  <div class="colorpicker">
    <colorPicker v-model="color" defaultColor="#1890FF" v-on:change="headleChangeColor" />
  </div>
</template>
<script>
export default {
  data() {
    return {
      color: JSON.parse(window.localStorage.getItem("color")) || "#1890FF",
    };
  },
  methods: {
    headleChangeColor(val) {
      this.$emit("themeColorSelected", val);
    },
  },
};
</script>
<style lang="less">
.colorpicker {
  .box {
    right: 15px;
  }
}
</style>
