flameresttable 1.0.10 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/Table/Table.vue +16 -1
package/package.json
CHANGED
package/src/Table/Table.vue
CHANGED
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
class="flex-1 border border-slate-100 mr-5 w-full flex self-stretch">
|
|
148
148
|
|
|
149
149
|
<div class="flex-1">
|
|
150
|
-
{{
|
|
150
|
+
{{ getFileName(Table.columns[column].Popup.model) }}
|
|
151
151
|
</div>
|
|
152
152
|
|
|
153
153
|
<!-- Загрузчик-->
|
|
@@ -349,6 +349,21 @@ export default defineComponent({
|
|
|
349
349
|
|
|
350
350
|
return null
|
|
351
351
|
|
|
352
|
+
},
|
|
353
|
+
|
|
354
|
+
getFileName(fileModel: any) {
|
|
355
|
+
const res = this.fileGetData(fileModel, false)
|
|
356
|
+
if (res?.name) {
|
|
357
|
+
if (typeof res.name === 'string' && res.name !== '') {
|
|
358
|
+
return res.name;
|
|
359
|
+
}
|
|
360
|
+
else {
|
|
361
|
+
if (res.file) {
|
|
362
|
+
const splitted = res.file.split('.');
|
|
363
|
+
return 'File.' + splitted[splitted.length - 1];
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
}
|
|
352
367
|
}
|
|
353
368
|
},
|
|
354
369
|
|