<template>
  <UploadFileComponent
    :value="props.value"
    :disabled="props.disabled"
    :record="props.record"
    :readonly="props.readonly"
    :isDesgin="props.isDesgin"
    @onChange="onChange"
    @update:value="updateValue"
  ></UploadFileComponent>
</template>

<script setup name="FormUploadFile">
const props = defineProps({
  value: {
    type: String,
    default: ''
  },
  //是否禁用
  disabled: {
    type: Boolean,
    default: false
  },
  record: {
    type: Object,
    default: {}
  },
  // 是否只读
  readonly: {
    type: Boolean,
    default: false
  },
  // 是否是设计
  isDesgin: {
    type: Boolean,
    default: false
  }
});

const emits = defineEmits(['update:value', 'onChange']);

const onChange = record => {
  emits('onChange', record);
};

const updateValue = value => {
  emits('update:value', value);
};
</script>

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