<template>
  <el-dialog v-model="props.modelValue" title="交叉轮播图详情" width="900px" @closed="closeDialog" @open="openDialog">
    <el-form ref="formRef" :model="formData" :disabled="true">
      <el-row>


        <el-col :span='12'>
          <el-form-item :label-width='labelWidth' label='图片' prop='cross_banner_img'>
            <UploadImage ref='uploadRef' v-model='formData.cross_banner_img' :data=uoloadData :limit='1' :fileSize='5'
              :drag='true' :isShowTip='false' />
          </el-form-item>
        </el-col>

        <el-col :span="24" :hidden="true">
          <el-form-item :label-width="labelWidth" label="位置" prop="cross_banner_position">
            <el-select style="width:150px" v-model="formData.cross_banner_position" clearable placeholder="请选择位置">
              <el-option label="上" :value="1"></el-option>
              <el-option label="下" :value="2"></el-option>
            </el-select>

          </el-form-item>
        </el-col>

        <el-col :span="12">
          <el-form-item :label-width="labelWidth" label="排序" prop="cross_banner_sort">
            <el-input-number v-model='formData.cross_banner_sort' controls-position='right' :min='1'></el-input-number>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
  </el-dialog>
</template>

<script setup>
import { reactive, ref, watch } from "vue";
import { isEmptyObject } from "~/utils/index";


// --业务参数



// --业务方法




// --基础参数
const formRef = ref();
const labelWidth = 100;

const props = defineProps({
  modelValue: Boolean,
  data: Object,
  done: Function,
});
const emits = defineEmits(["update:modelValue"]);
const formData = ref({
  ...props.data,
});


// --基础方法
watch(props, (v) => {
  formData.value = v.data;


});

// 打开弹窗时执行
const openDialog = () => {


};

const closeDialog = () => {
  emits("update:modelValue", false);
};
</script>

<style lang="less" scoped></style>
