63
63
}}
64
64
</el-text >
65
65
</p >
66
- <p >{{ documentExtensions.map(s => s.toUpperCase()). join('、') }}</p >
66
+ <p >{{ documentExtensions.join('、') }}</p >
67
67
</div >
68
68
</div >
69
69
<el-checkbox
93
93
}}
94
94
</el-text >
95
95
</p >
96
- <p >{{ imageExtensions.map(s => s.toUpperCase()). join('、') }}</p >
96
+ <p >{{ imageExtensions.join('、') }}</p >
97
97
</div >
98
98
</div >
99
99
<el-checkbox v-model =" form_data.image" @change =" form_data.image = !form_data.image" />
121
121
}}
122
122
</el-text >
123
123
</p >
124
- <p >{{ audioExtensions.map(s => s.toUpperCase()). join('、') }}</p >
124
+ <p >{{ audioExtensions.join('、') }}</p >
125
125
</div >
126
126
</div >
127
127
<el-checkbox v-model =" form_data.audio" @change =" form_data.audio = !form_data.audio" />
@@ -212,9 +212,9 @@ const loading = ref(false)
212
212
const fieldFormRef = ref ()
213
213
const InputRef = ref <InputInstance >()
214
214
215
- const documentExtensions = [' txt ' , ' md ' , ' docx ' , ' html ' , ' csv ' , ' xlsx ' , ' xls ' , ' pdf ' ]
216
- const imageExtensions = [' jpg ' , ' jpeg ' , ' png ' , ' gif ' ]
217
- const audioExtensions = [' mp3 ' , ' wav ' , ' ogg ' , ' acc ' , ' m4a ' ]
215
+ const documentExtensions = [' TXT ' , ' MD ' , ' DOCX ' , ' HTML ' , ' CSV ' , ' XLSX ' , ' XLS ' , ' PDF ' ]
216
+ const imageExtensions = [' JPG ' , ' JPEG ' , ' PNG ' , ' GIF ' ]
217
+ const audioExtensions = [' MP3 ' , ' WAV ' , ' OGG ' , ' ACC ' , ' M4A ' ]
218
218
219
219
const form_data = ref ({
220
220
maxFiles: 3 ,
@@ -224,7 +224,7 @@ const form_data = ref({
224
224
audio: false ,
225
225
video: false ,
226
226
other: false ,
227
- otherExtensions: [' ppt ' , ' doc ' ]
227
+ otherExtensions: [' PPT ' , ' DOC ' ]
228
228
})
229
229
230
230
function open(data : any ) {
@@ -250,6 +250,7 @@ const showInput = () => {
250
250
}
251
251
const handleInputConfirm = () => {
252
252
if (inputValue .value ) {
253
+ inputValue .value = inputValue .value .toUpperCase ()
253
254
if (
254
255
form_data .value .otherExtensions .includes (inputValue .value ) ||
255
256
documentExtensions .includes (inputValue .value ) ||
0 commit comments