<template>
  <div class="fp-setting-wrapper">
    <div class="fp-setting-header">
      <slot name="header">标题</slot>
    </div>
    <div class="fp-setting-panel">
      <div class="fp-setting-panel-content">
        <slot></slot>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "FpSettingWrapper"
}
</script>

<style scoped>

.fp-setting-header {
  display: -webkit-flex;
  display: flex;
  align-items: center;
  background-color: #fff;
  border-bottom: 2px solid #eef2f8;
  box-sizing: border-box;
  /*padding: 0 30px;*/

  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  z-index: 5;

  justify-content: flex-start;
  padding: 0 9px;
}

.fp-setting-header button {
  border: none;
  outline: none;
  user-select: none;
  background-color: #fff;
  cursor: unset;
  padding: 14px 15px;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #9da3ac;
}

.fp-setting-header button.active {
  color: #33383e;
}

.fp-setting-panel {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  overflow: auto;
  padding-top: 50px;

}

.fp-setting-panel-content {
  height: 100%;
  width: 276px;
  padding: 16px 10px;
  overflow-x: hidden;
  overflow-y: auto;
  background-color: #ffffff;
}

.fp-setting-panel-row {
  margin-top: 12px;
}

.fp-setting-panel-row:first-child {
  margin-top: 0;
}

.fp-setting-panel-row-cell-label {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  color: #9da3ac;
  user-select: none;
}


.fp-canvas-view {
  display: flex;
}


.fp-canvas-view-item1 {
  flex: 1;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fp-canvas-view-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 5;
  height: 40px;
  /*background: #f6f7f9;*/
  border-radius: 4px;
  font-size: 14px;
  /*color: #33383e;*/
  color: #606266;
  padding: 0 0 0 8px;
  cursor: pointer;
}

.fp-canvas-view-item-label {
  font-size: 14px;
  color: #7f8792;
}

.fp-canvas-view i {
  width: 8px;
  display: block;
}

</style>