【issues/6920】解决热更新ScrollContainer报错 ---

pull/7060/head
JEECG 2024-08-05 13:50:53 +08:00
parent 1c9e76931f
commit 517600f9a4
1 changed files with 2 additions and 4 deletions

View File

@ -3,7 +3,7 @@
<a-input :placeholder="t('component.icon.search')" v-model:value="searchIconValue" @change="debounceHandleSearchChange" allowClear /> <a-input :placeholder="t('component.icon.search')" v-model:value="searchIconValue" @change="debounceHandleSearchChange" allowClear />
</div> </div>
<div v-if="getPaginationList.length > 0"> <div v-if="getPaginationList.length > 0">
<ScrollContainer> <div class="overflow-auto">
<ul class="px-2 icon-list" style="padding-right: 0"> <ul class="px-2 icon-list" style="padding-right: 0">
<li <li
v-for="icon in getPaginationList" v-for="icon in getPaginationList"
@ -17,7 +17,7 @@
<Icon :icon="icon" v-else /> <Icon :icon="icon" v-else />
</li> </li>
</ul> </ul>
</ScrollContainer> </div>
<div class="flex py-2 items-center justify-content-right mr-10 mt-5" v-if="getTotal >= pageSize && isPage"> <div class="flex py-2 items-center justify-content-right mr-10 mt-5" v-if="getTotal >= pageSize && isPage">
<Pagination <Pagination
showLessItems showLessItems
@ -36,7 +36,6 @@
</template> </template>
<script lang="ts" name="icon-list"> <script lang="ts" name="icon-list">
import { ScrollContainer } from '@/components/Container';
import SvgIcon from '@/components/Icon/src/SvgIcon.vue'; import SvgIcon from '@/components/Icon/src/SvgIcon.vue';
import Icon from '@/components/Icon/src/Icon.vue'; import Icon from '@/components/Icon/src/Icon.vue';
import { defineComponent, ref, unref, watchEffect} from 'vue'; import { defineComponent, ref, unref, watchEffect} from 'vue';
@ -49,7 +48,6 @@
import { Empty, Pagination } from 'ant-design-vue'; import { Empty, Pagination } from 'ant-design-vue';
export default defineComponent({ export default defineComponent({
components: { components: {
ScrollContainer,
SvgIcon, SvgIcon,
Icon, Icon,
Empty, Empty,