<template>
  <div class="populayview">
    <div class="populayview-sl">
      <div class="populayview-sl-shuiy">
        <slot name="head" />
        <br v-if="$slots.head" />
        <slot />
        <zj-watermark
          color="rgba(200,200,200,.3)"
          position="absolute"
          :str="str"
          zIndex="101"
        />
      </div>
    </div>
  </div>
</template>

<script>
export default {
  computed: {
    str() {
      return this.$store.state?.user?.name;
    },
  },
};
</script>

<style lang="scss" scoped>
.populayview {
  // min-width: 860px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: #fff;
  overflow: hidden;
  .populayview-sl {
    width: 100%;
    height: 100%;
    overflow: auto;
    .populayview-sl-shuiy {
      padding: 20px;
      min-height: 100%;
      position: relative;
    }
  }
}
</style>
