import '../../../utils/index.mjs';
import { buildProps, definePropType } from '../../../utils/props/runtime.mjs';

"use strict";
const borderType = ["dotted", "solid", "dashed"];
const uploadImageProps = buildProps({
  // 图片宽度
  width: {
    type: Number,
    default: 100
  },
  // 图片高度
  height: {
    type: Number,
    default: 100
  },
  // 图片圆角
  borderRadius: {
    type: String,
    default: "6px"
  },
  // 边框形态
  borderType: {
    type: String,
    values: borderType,
    default: "dashed"
  },
  // 是否支持拖拽
  isDrag: {
    type: Boolean,
    default: false
  },
  // 上传标题
  uploadTitle: {
    type: String,
    default: ""
  },
  // 上传描述
  uploadTip: {
    type: [String, Boolean],
    default: ""
  },
  // 上传图标
  uploadIcon: {
    type: String,
    default: "icon-add"
  },
  // 上传图标大小
  uploadIconSize: {
    type: Number,
    default: 30
  },
  value: {
    type: definePropType([String, Array]),
    default: []
  },
  imgLoading: {
    type: Boolean,
    default: false
  },
  useBase64: {
    type: Boolean,
    default: true
  },
  maxCount: {
    type: Number,
    default: 1
  },
  accept: {
    type: String,
    default: ".jpg,.png,.jpeg,.svg"
  },
  imgSize: {
    type: Number,
    default: 2
  },
  beforeUpload: {
    type: definePropType(Function),
    default: () => true
  },
  customRequest: {
    type: definePropType(Function),
    default: () => {
    }
  },
  // 是否开启预览
  isPreview: {
    type: Boolean,
    default: true
  },
  // 是否开启删除
  isDelete: {
    type: Boolean,
    default: true
  }
});
const uploadImageEmits = {
  change: (value) => value === void 0 || typeof value === "string" || Array.isArray(value),
  "update:value": (value) => value === void 0 || typeof value === "string" || Array.isArray(value)
};

export { borderType, uploadImageEmits, uploadImageProps };
//# sourceMappingURL=upload-image.mjs.map
