This commit is contained in:
孟帅
2023-09-06 17:28:16 +08:00
parent 9fa670e5c3
commit 5670aa9c82
22 changed files with 156 additions and 127 deletions

View File

@@ -72,7 +72,7 @@
watch(
() => props.value,
async () => {
if (props.value === 0) {
if (!props.value || props.value === 0) {
valueLabel.value = null;
return;
}

View File

@@ -226,7 +226,11 @@
'When the file picker is currently in multiple-file mode, but the passed value is not of type string array, there may be potential issues.'
);
}
fileList.value = value as string[];
if (!value) {
fileList.value = [];
} else {
fileList.value = value as string[];
}
}
}

View File

@@ -304,7 +304,7 @@ export const columns = [
width: 32,
height: 32,
src: row.image,
onError: errorImg,
fallbackSrc: errorImg,
style: {
width: '32px',
height: '32px',
@@ -326,7 +326,7 @@ export const columns = [
width: 32,
height: 32,
src: image,
onError: errorImg,
fallbackSrc: errorImg,
style: {
width: '32px',
height: '32px',

View File

@@ -153,7 +153,7 @@ export const columns = [
width: 40,
height: 40,
src: row.fileUrl,
onError: errorImg,
fallbackSrc: errorImg,
style: {
width: '40px',
height: '40px',

View File

@@ -173,7 +173,7 @@ export const columns = [
width: 32,
height: 32,
src: row.image,
onError: errorImg,
fallbackSrc: errorImg,
style: {
width: '32px',
height: '32px',
@@ -288,4 +288,4 @@ async function loadOptions() {
}
}
await loadOptions();
await loadOptions();

View File

@@ -161,7 +161,7 @@
width: 48,
height: 48,
src: row.logo,
onError: errorImg,
fallbackSrc: errorImg,
style: {
width: '48px',
height: '48px',