Skip to content

Commit

Permalink
fix: add maximumFileSizeToCacheInBytes to fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurDarkstone committed Nov 5, 2024
1 parent b9c98d0 commit 5d4d3d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/.vitepress/config/shared.mts
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ function pwa(): PwaOptions {
registerType: 'autoUpdate',
workbox: {
globPatterns: ['**/*.{css,js,html,svg,png,ico,txt,woff2}'],
maximumFileSizeToCacheInBytes: 5 * 1024 * 1024,
},
};
}
4 changes: 2 additions & 2 deletions docs/src/demos/vben-vxe-table/custom-cell/index.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts" setup>
import type { VxeGridProps } from '#/adapter/vxe-table';
import { Image as AImage, Button, Switch, Tag } from 'ant-design-vue';
import { Button, Image, Switch, Tag } from 'ant-design-vue';
import { useVbenVxeGrid } from '#/adapter/vxe-table';
Expand Down Expand Up @@ -89,7 +89,7 @@ const [Grid] = useVbenVxeGrid({ gridOptions });
<div class="vp-raw w-full">
<Grid>
<template #image-url="{ row }">
<AImage :src="row.imageUrl" height="30" width="30" />
<Image :src="row.imageUrl" height="30" width="30" />
</template>
<template #open="{ row }">
<Switch v-model:checked="row.open" />
Expand Down

0 comments on commit 5d4d3d0

Please sign in to comment.