Преглед на файлове

升级element-plus到最新版本1.2.0-beta.6

RuoYi преди 3 години
родител
ревизия
f3b1470a5c
променени са 3 файла, в които са добавени 3 реда и са изтрити 4 реда
  1. 1 1
      package.json
  2. 1 2
      src/components/Pagination/index.vue
  3. 1 1
      src/layout/components/TagsView/ScrollPane.vue

+ 1 - 1
package.json

@@ -19,7 +19,7 @@
     "@vueuse/core": "6.4.1",
     "axios": "0.24.0",
     "echarts": "5.2.1",
-    "element-plus": "1.2.0-beta.3",
+    "element-plus": "1.2.0-beta.6",
     "file-saver": "2.0.5",
     "fuse.js": "6.4.6",
     "js-cookie": "3.0.1",

+ 1 - 2
src/components/Pagination/index.vue

@@ -3,7 +3,7 @@
     <el-pagination
       :background="background"
       v-model:current-page="currentPage"
-      :page-size="pageSize"
+      v-model:page-size="pageSize"
       :layout="layout"
       :page-sizes="pageSizes"
       :pager-count="pagerCount"
@@ -77,7 +77,6 @@ const pageSize = computed({
   }
 })
 function handleSizeChange(val) {
-  pageSize.value = val
   emit('pagination', { page: currentPage.value, limit: val })
   if (props.autoScroll) {
     scrollTo(0, 800)

+ 1 - 1
src/layout/components/TagsView/ScrollPane.vue

@@ -13,7 +13,7 @@
 const tagAndTagSpacing = ref(4);
 const { proxy } = getCurrentInstance();
 
-const scrollWrapper = computed(() => proxy.$refs.scrollContainer.$refs.wrap);
+const scrollWrapper = computed(() => proxy.$refs.scrollContainer.$refs.wrap$);
 
 onMounted(() => {
   scrollWrapper.value.addEventListener('scroll', emitScroll, true)