Skip to content
On this page

FsCropperUploader

图片裁剪上传组件,封装了 fs-cropper, fs-cropper 内部封装了 cropperjs

Props

Prop nameDescriptionTypeValuesDefault
disabled-
modelValuestring|array-
img-
typestring-
uploadTipstring-
titlestring-
cropperHeightstring|number-
dialogWidthstring|number-"50%"
maxSizenumber-5
limitnumber-1
acceptstring-".jpg, .jpeg, .png, .gif, .webp"
cropperobject-
uploaderobject-
buildUrlfunc-function (value, item) {
return typeof value === "object" ? item.url : value;
}

Events

Event namePropertiesDescription
update:modelValue
change