flameresttable 1.0.108 → 1.0.110
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 +4 -0
package/package.json
CHANGED
package/src/Table/Table.vue
CHANGED
|
@@ -294,6 +294,7 @@ export default defineComponent({
|
|
|
294
294
|
// Установим все поля в пустые значения
|
|
295
295
|
ColumnNames.forEach(key => {
|
|
296
296
|
Table.columns[key].Popup.model = "";
|
|
297
|
+
Table.columns[key].Popup.fileModel = null;
|
|
297
298
|
})
|
|
298
299
|
|
|
299
300
|
FlameTableModal.value?.show();
|
|
@@ -355,6 +356,9 @@ export default defineComponent({
|
|
|
355
356
|
}
|
|
356
357
|
|
|
357
358
|
const fileUpdated = async (column: any, ev: any) => {
|
|
359
|
+
// если файлы не выбраны
|
|
360
|
+
if (ev.target.files.length === 0) return;
|
|
361
|
+
|
|
358
362
|
Table.columns[column].Popup.model = ev;
|
|
359
363
|
const prepared = (await REST.prepare({ myParam: ev })).myParam;
|
|
360
364
|
Table.columns[column].Popup.model = prepared
|