mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
feat: 图表组件图片换成懒加载
This commit is contained in:
@@ -13,13 +13,7 @@
|
||||
<n-text class="list-header-text" depth="3">{{ item.title }}</n-text>
|
||||
</div>
|
||||
<div class="list-center go-flex-center">
|
||||
<n-image
|
||||
class="list-img"
|
||||
object-fit="contain"
|
||||
preview-disabled
|
||||
:src="item.image"
|
||||
:fallback-src="requireFallbackImg()"
|
||||
/>
|
||||
<img class="list-img" v-lazy="item.image" alt="图表图片" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -28,7 +22,7 @@
|
||||
<script setup lang="ts">
|
||||
import { PropType } from 'vue'
|
||||
import { MacOsControlBtn } from '@/components/MacOsControlBtn/index'
|
||||
import { requireFallbackImg, componentInstall } from '@/utils'
|
||||
import { requireErrorImg, componentInstall } from '@/utils'
|
||||
import { DragKeyEnum } from '@/enums/editPageEnum'
|
||||
import { ConfigType } from '@/packages/index.d'
|
||||
import omit from 'lodash/omit'
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
object-fit="contain"
|
||||
preview-disabled
|
||||
:src="image"
|
||||
:fallback-src="requireFallbackImg()"
|
||||
:fallback-src="requireErrorImg()"
|
||||
/>
|
||||
<n-ellipsis>
|
||||
<n-text class="list-text">
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref, toRefs, computed } from 'vue'
|
||||
import { requireFallbackImg } from '@/utils'
|
||||
import { requireErrorImg } from '@/utils'
|
||||
import { useDesignStore } from '@/store/modules/designStore/designStore'
|
||||
import { useChartEditStoreStore } from '@/store/modules/chartEditStore/chartEditStore'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user