Skip to content

Commit

Permalink
release: v2.2.21
Browse files Browse the repository at this point in the history
  • Loading branch information
hjwforever committed Oct 28, 2024
1 parent 4d4effe commit f97645b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "MegSpot",
"version": "v2.2.20",
"version": "v2.2.21",
"author": "weiyajun <weiyajun@megvii.com>",
"description": "A tool to improve the viewing of pictures and videos by researchers",
"homepage": "https://github.com/MegEngine/MegSpot",
Expand Down Expand Up @@ -44,8 +44,8 @@
"appId": "org.megvii.megspot",
"copyright": " Copyright (c) 2022 Megvii Inc. All rights reserved.",
"releaseInfo": {
"releaseNotes": "一、修复\n 1. 修复新图像模式下的旋转和翻转。",
"releaseDate": "2024.00.22"
"releaseNotes": "一、性能优化\n 1. 对gallery画廊的图像列表启用懒加载,解决了文件过多时导致的卡顿问题",
"releaseDate": "2024.10.28"
},
"directories": {
"output": "build"
Expand Down Expand Up @@ -125,6 +125,7 @@
"vue": "^2.6.12",
"vue-awesome-swiper": "^4.1.1",
"vue-i18n": "^8.22.4",
"vue-lazyload": "1.3.3",
"vue-router": "^3.4.9",
"vue-split-panel": "^1.0.4",
"vuedraggable": "^2.24.3",
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/components/gallery/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@
</span>
</div>
<div class="content" flex="main:center cross:center">
<img name="dragItem" loading="lazy" decoding="async" :src="getImageUrlSync(item)" v-if="isImage(item)" />
<video name="dragItem" loading="lazy" :src="getImageUrlSync(item)" v-if="isVideo(item)" />
<img v-if="isImage(item)" v-lazy="getImageUrlSync(item)" name="dragItem" width="200px" height="130px" loading="lazy" decoding="async" />
<video v-if="isVideo(item)" v-lazy="getImageUrlSync(item)" name="dragItem" width="200px" height="130px" loading="lazy" />
</div>
<div class="name" :title="item">
<span v-html="$options.filters.getFileName(item)"></span>
Expand Down
2 changes: 2 additions & 0 deletions src/renderer/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ import VXETable from 'vxe-table'
import 'vxe-table/lib/style.css'
import VueSplit from 'vue-split-panel'
import VueScroll from 'vuescroll'
import VueLazyload from 'vue-lazyload'

import { initEventBus } from '@/utils/bus'
import { initAnalyze } from '@/utils/analyze'

Vue.use(VueLazyload)
Vue.use(VXETable)
Vue.use(VueSplit)
Vue.use(VueScroll)
Expand Down

0 comments on commit f97645b

Please sign in to comment.