Исправления фронта
Множество оптимизаций по фронту
This commit is contained in:
@@ -68,7 +68,8 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref, computed, onMounted, onUpdated } from 'vue'
|
||||
import { ref, computed } from 'vue'
|
||||
import { useLucideIcons } from '../../composables/useLucideIcons'
|
||||
|
||||
const props = defineProps({
|
||||
files: {
|
||||
@@ -108,6 +109,8 @@ const props = defineProps({
|
||||
|
||||
const emit = defineEmits(['add', 'remove', 'preview', 'error'])
|
||||
|
||||
useLucideIcons()
|
||||
|
||||
const fileInputRef = ref(null)
|
||||
const isDragging = ref(false)
|
||||
|
||||
@@ -237,16 +240,6 @@ const downloadFile = async (file) => {
|
||||
}
|
||||
}
|
||||
|
||||
// Обновление иконок
|
||||
const refreshIcons = () => {
|
||||
if (window.lucide) {
|
||||
window.lucide.createIcons()
|
||||
}
|
||||
}
|
||||
|
||||
onMounted(refreshIcons)
|
||||
onUpdated(refreshIcons)
|
||||
|
||||
// Экспортируем методы
|
||||
defineExpose({
|
||||
triggerFileInput
|
||||
|
||||
Reference in New Issue
Block a user