fix: 已知问题修复,vxe-table 样式丢失和乱码

This commit is contained in:
Ray.Hao
2026-01-14 16:19:13 +08:00
parent c7b94be799
commit b45554d098
9 changed files with 39 additions and 7343 deletions

View File

@@ -68,7 +68,7 @@ const props = defineProps({
default: 10,
},
/**
* 单个文件的最大允许大<EFBFBD>?
* 单个文件的最大允许大
*/
maxFileSize: {
type: Number,
@@ -84,7 +84,7 @@ const props = defineProps({
});
const previewVisible = ref(false); // 是否显示预览
const previewImageIndex = ref(0); // 预览图片的索<EFBFBD>?
const previewImageIndex = ref(0); // 预览图片的索
const modelValue = defineModel("modelValue", {
type: [Array] as PropType<string[]>,
@@ -108,22 +108,22 @@ function handleRemove(imageUrl: string) {
}
/**
* 上传前校<EFBFBD>?
* 上传前校
*/
function handleBeforeUpload(file: UploadRawFile) {
// 校验文件类型:虽<EFBFBD>?accept 属性限制了用户在文件选择器中可选的文件类型,但仍需在上传时再次校验文件实际类型,确保符<EFBFBD>?accept 的规<EFBFBD>?
// 校验文件类型:虽accept 属性限制了用户在文件选择器中可选的文件类型,但仍需在上传时再次校验文件实际类型,确保符accept 的规
const acceptTypes = props.accept.split(",").map((type) => type.trim());
// 检查文件格式是否符合 accept
const isValidType = acceptTypes.some((type) => {
if (type === "image/*") {
// 如果<EFBFBD>?image/*,检<EFBFBD>?MIME 类型是否<EFBFBD>?"image/" 开<EFBFBD>?
// 如果image/*,检MIME 类型是否"image/" 开
return file.type.startsWith("image/");
} else if (type.startsWith(".")) {
// 如果是扩展名 (.png, .jpg),检查文件名是否以指定扩展名结尾
return file.name.toLowerCase().endsWith(type);
} else {
// 如果是具体的 MIME 类型 (image/png, image/jpeg),检查是否完全匹<EFBFBD>?
// 如果是具体的 MIME 类型 (image/png, image/jpeg),检查是否完全匹
return file.type === type;
}
});