瀏覽代碼

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

JEECG 8 月之前
父節點
當前提交
517600f9a4
共有 1 個文件被更改,包括 2 次插入4 次删除
  1. 2 4
      jeecgboot-vue3/src/components/Icon/src/IconList.vue

+ 2 - 4
jeecgboot-vue3/src/components/Icon/src/IconList.vue

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