<template>
  <q-dialog v-model="show" class="col-6" persistent position="right" full-width  maximized
    @hide="hideDialog">
    <q-card class="full-height">
      <q-card-section class="row items-center q-pb-none">
        <div class="text-h6">
          <slot name="head">
            导入
          </slot>
        </div>
        <q-space />
        <q-btn icon="close" flat round dense v-close-popup />
      </q-card-section>

      <q-card-section class="q-pt-none">
        <div class="row"  style="width:800px ;max-width:800px">
          
        </div>
      </q-card-section>

      <q-card-actions align="right" class="bg-white text-teal">
        <q-btn flat label="取消" v-close-popup />
        <q-btn color="primary"  unelevated label="确定" />
      </q-card-actions>
    </q-card>
  </q-dialog>
</template>
<script lang="ts">
  import {
    ref,
    watch
  } from 'vue'

  export default {
    props: {
      modelValue: {
        type: Boolean,
        default: false,
        required: true,
      },
    },

    setup(props, ctx) {
      let show = ref(false)
      watch(
        () => props.modelValue,
        val => {
          console.log(48,val)
          show.value = val
        }
      )
      let hideDialog = () => {
        ctx.emit('update:modelValue', false)
      }
      return {
        show,
        hideDialog
      }
    }
  }

</script>
<style scoped>
  ::-webkit-scrollbar {
    height: 7px;
    width: 7px;
  }

  ::-webkit-scrollbar-thumb {
    /*滚动条里面小方块*/
    border-radius: 3px;
    background-color: #ddd;
  }

  ::-webkit-scrollbar-track-piece {
    background-color: #fff;
    -webkit-border-radius: 12px;
  }

  .list-title {
    height: 50px;
    padding-bottom: 10px;
    color: #606266;
    font-size: 14px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
  }

  .list-box {
    height: 420px;
    overflow-y: scroll;
  }

  .list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0 0 10px;
    border-radius: 5px;
    height: 30px;
  }

</style>
